FreeBSD 4.0: create a directory, then move another directory into it

Robert Watson robert at cyrus.watson.org
Thu Feb 25 11:12:51 CET 1999



Under 4.0-FreeBSD, Arla 0.22:

% cd /afs/andrew/usr4/rnw
% ls
# ... including a directory named 15740
% mkdir class
% cd class
% mv ../15740 .				# 15740 is a directory
% ls 15740
ls: 15740: No such file or directory
% ls -l
ls: 15740: No such file or directory
total 8
drwxr-xr-x   3 34739       wheel  2048 Feb 24 20:09 ./
drwxr-xr-x  23 4294936499  wheel  6144 Feb 24 20:09 ../
% cd ..
% ls 
# ... no 15740 here
% cd class
% ls
./	../	15740/
%

This can be repeated by moving other directories into . in the same style.
I'm guessing it's a cache coherrence thing--the directory really is moved
(and shows up that way on other machines), it just doesn't seem
immediately to be available for the stat performed by ls, perhaps cached
by the kernel?

Thanks,

  Robert N Watson 

robert at fledge.watson.org              http://www.watson.org/~robert/
PGP key fingerprint: 03 01 DD 8E 15 67 48 73  25 6D 10 FC EC 68 C1 1C

Carnegie Mellon University            http://www.cmu.edu/
TIS Labs at Network Associates, Inc.  http://www.tis.com/
SafePort Network Services             http://www.safeport.com/







More information about the Arla-drinkers mailing list