NFS bug, 2.1.57 from Solaris 2.6 server

Aron Griffis (agriffis@coat.com)
Mon, 29 Sep 1997 14:35:16 -0400 (EDT)


There seems to be an NFS problem that results in missing files and
directories. I don't know if this is a problem with Linux NFS or
Solaris NFS, or what versions are affected. My test case is Linux
2.1.57 -> Solaris 2.6. I tried a couple shells (the example is using
ash) to verify that they are not at fault. It is possible that it is
the mv program, but I have tested on local disk and the problem does not
show.

$ :>1 ; :>2 ; :>3 ; mkdir 4 ; mv * 4
mv: cannot move `4' to `4/4': Operation not permitted
$ ls -lF
total 0

It doesn't make any difference what order the files and directory are
made. Nor does it matter if there is anything already in the
directory; it is always removed. I think it is necessary for the
directory name to be the last filename mv tries to rename. That is,

$ :>2 ; :>3 ; :>4 ; mkdir 1 ; mv * 1
mv: cannot move `1' to `1/1': Operation not permitted
$ ls -lF
total 0
-rw-r--r-- 1 agriffis network 0 Sep 29 14:20 1

mv 1 2 3 4 4 <-- produces bug (first example)
mv 1 2 3 4 1 <-- doesn't produce bug (second example)

Anybody else seeing this? I've only done preliminary testing so it's
entirely possible I'm missing something stupid.

-Aron

+----------------------------------------->
| Aron Griffis (agriffis@coat.com)
| Burlington Coat Factory - Network Group
+----------------------------------------->