[627] in arla-drinkers

home help back first fref pref prev next nref lref last post

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

daemon@ATHENA.MIT.EDU (Robert Watson)
Thu Feb 25 05:20:16 1999

From owner-arla-drinkers@stacken.kth.se Thu Feb 25 10:20:13 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 18019 invoked from network); 25 Feb 1999 10:20:11 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 25 Feb 1999 10:20:11 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id LAA18584
	for arla-drinkers-list; Thu, 25 Feb 1999 11:12:51 +0100 (MET)
Received: from elixir.e.kth.se (1073744992@elixir.e.kth.se [130.237.48.5])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id LAA18580
	for <arla-drinkers@stacken.kth.se>; Thu, 25 Feb 1999 11:12:45 +0100 (MET)
Received: from anchor.s3.kth.se (anchor.s3.kth.se [130.237.43.59])
	by elixir.e.kth.se (8.9.2/8.9.2) with ESMTP id LAA15351
	for <arla-drinkers@stacken.kth.se>; Thu, 25 Feb 1999 11:12:44 +0100 (MET)
Received: (from lha@localhost)
	by anchor.s3.kth.se (8.9.2/8.9.2) id LAA00141;
	Thu, 25 Feb 1999 11:12:43 +0100 (MET)
Date: Wed, 24 Feb 1999 20:17:12 -0500 (EST)
From: Robert Watson <robert@cyrus.watson.org>
X-Sender: robert@fledge.watson.org
Reply-To: Robert Watson <robert@cyrus.watson.org>
To: arla-drinkers@stacken.kth.se
Subject: FreeBSD 4.0: create a directory, then move another directory into it
Message-ID: <Pine.BSF.3.96.990224201034.29480A-100000@fledge.watson.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Lines: 42
X-Mailer: Gnus v5.5/Emacs 20.2
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk


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@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/



home help back first fref pref prev next nref lref last post