|
|||||||||||
|
NFS rename bug (server)
From: <rick(at)snowhite.cis.uoguelph.ca>
Date: Thu Jun 19 2003 - 14:56:30 EDT
The following bug(s) showed up when testing "mv a b", where "a" and "b"
are links to the same file.
/* to test for multiple hard links to the same file. I notice that NetBSD has a flag called "retain" that is used to decide how to do the test above the vnode layer and OpenBSD does the POSIX style test above the vnode layer unconditionally. However, they still do the non-POSIX test in nfs_serv.c. If you make the above change and don't have the client set to do the POSIX style change, a subtle bug does show up in the client, as follows:
So, if you want the client to be POSIX compliant, it must do the test for multiple hard links of the same file before the test for silly_rename in nfs_rename(). (It can either do the test above the vnode layer before the VOP_RENAME() call in sys_rename() or it could be added in nfs_rename() before the silly_rename test.) Anyhow, just thought I'd pass this along, since the server fails a connectathon special test if you don't change the test in nfs_serv.c (and then the subtle bug in the client gives you the impression you haven't fixed the bug:-). In case you are interested, the nfs v4 server is almost complete and a snapshot with support for everything except Delegation and Kerberos authentication should be out in a couple of weeks. (Delegation and Kerberos authentication should be added later this summer.) The code has been organized so it can be put in a kernel beside the old nfs code, although you have to choose which server to run, since the server does v2 and v3 as well.
Have a fun weekend, rick
BSDen, so I've emailed it to addresses that I thought might get to the right people. If you don't want to get more of these and/or know of a better email address to send them to, please let me know. Received on Thu Jun 19 15:06:54 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:58 EDT |
||||||||||
|
|||||||||||