Remove issue with Vanilla install of Fedora 7

Christopher T Vogan cvogan at us.ibm.com
Thu Mar 20 11:29:05 EDT 2008



I have been testing vanilla installs of Suse, Redhat and Fedora with NFSv4.
I have stumbled upon a issue that I can not explain.
The issue is the Linux client (Fedora 7) sends a CLOSE call.  Before the
server replies to the CLOSE the Linux client issue a rename. I wanted a
remove  I know why the linux client did that, it thinks the file is still
open.  What I do not understand is why did the Linux client not wait for
the CLOSE call to reply before trying to remove the file?
In this case the remove failed because of an invalid file name NAMETOOLONG
which is expected in this case..

This issue does not happen on a system that has CITI kernel with patches
and Userland utilities CITI provides. I am wondering if I have a
configuration issue. I never saw this problem with prior or newer kernels.
Is this something that the patched kernels resolve?

In the network trace (the part of interest):

CALL  CLOSE
CALL LOOKUP  <- rename to replace remove
REPLY CLOSE
REPLY LOOKUP


The test program does 4 things in this order to recreate this issue.
OPEN fd
STAT fd
CLOSE fd
REMOVE fd


I gathered NFS client and RPC debug info and a network trace.  I am also
including a testcase to reproduce the problem.
(See attached file: openclose.pcap)(See attached file: openclose.txt)(See
attached file: openclose.c)

Christopher Vogan
Dept. W98 NFS Development & Test
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux-nfs.org/pipermail/nfsv4/attachments/20080320/14d17746/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openclose.pcap
Type: application/octet-stream
Size: 5342 bytes
Desc: not available
Url : http://linux-nfs.org/pipermail/nfsv4/attachments/20080320/14d17746/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openclose.txt
Type: application/octet-stream
Size: 53766 bytes
Desc: not available
Url : http://linux-nfs.org/pipermail/nfsv4/attachments/20080320/14d17746/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openclose.c
Type: application/octet-stream
Size: 1517 bytes
Desc: not available
Url : http://linux-nfs.org/pipermail/nfsv4/attachments/20080320/14d17746/attachment-0002.obj 


More information about the NFSv4 mailing list