Subject: Re: nfs bug?
To: Bill Studenmund <firstname.lastname@example.org>
From: None <email@example.com>
Date: 05/27/2004 20:18:46
the SFU 3.5 nfs-server implements rfc 1813:
"3.3.13 Procedure 13: RMDIR - Remove a Directory
Procedure RMDIR removes (deletes) a subdirectory from a
directory. If the directory entry of the subdirectory is
the last reference to the subdirectory, the subdirectory
may be destroyed. On entry, the arguments in RMDIR3args
A diropargs3 structure identifying the directory entry
to be removed:
The file handle for the directory from which the
subdirectory is to be removed.
The name of the subdirectory to be removed. Refer to
General comments on filenames on page 30.
Note that on some servers, removal of a non-empty
directory is disallowed.
On some servers, the filename, ".", is illegal. These
servers will return the error, NFS3ERR_INVAL. On some
servers, the filename, "..", is illegal. These servers
will return the error, NFS3ERR_EXIST. This would seem
inconsistent, but allows these servers to comply with
their own specific interface definitions. Clients should
be prepared to handle both cases."
The Microsoft Support tells me, that the SFU sever does not allow the
removal of a non-empty directory and NetBSD does not handle this
> You mean rm -r foo ?? rm -f complains that foo is a directory.
No, I mean rm -rf foo and foo is a directory. Some makefiles in the sys or
pkgsrc tree are using this syntax for 'make clean'.
the manpage says:
-f Attempt to remove the files without prompting for confirmation
I think the -f option works also with directories?
Thank you for your efforts