[linux-cifs-client] [PATCH] [CIFS] don't explicitly do a FindClose when directory search has ended

Jeff Layton jlayton at redhat.com
Tue May 13 21:02:00 GMT 2008

Do the following series of operations on a CIFS share:

    unlink(file in dir)

...this will make CIFS throw an error like this:

     CIFS VFS: Send error in FindClose = -9

CIFS sets the "Close at end of search" bit when doing a FindFirst or
FindNext. When we notice that a directory has changed after the last
operation, we attempt to close the directory before reissuing the second
FindFirst above. But, the directory has already been closed because the
first readdir finished. So we only want to issue a FindClose call when
we don't expect it to already be closed.

Signed-off-by: Jeff Layton <jlayton at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-CIFS-don-t-explicitly-do-a-FindClose-when-director.patch
Type: text/x-patch
Size: 1797 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux-cifs-client/attachments/20080513/bb7b1e91/0001-CIFS-don-t-explicitly-do-a-FindClose-when-director.bin

More information about the linux-cifs-client mailing list