Hi guys I have a problem with Samba 4.0 shares covered by scannedonly VFS. Example configuration of one of those shares: path = /foo/bar/baz read only = No browseable = No vfs objects = scannedonly scannedonly:domain_socket = True scannedonly:socketname = /var/lib/scannedonly/scan scannedonly:hide_nonscanned_files = True scannedonly:allow_nonscanned_files = False Whenever I try do delete a directory, I get NT_STATUS_INVALID_HANDLE status, but directory is removed. On Windows, this status spawns an error dialog. Example session: smb: \blah\> ls . D 0 Mon Dec 31 14:48:38 2012 .. D 0 Fri Dec 28 11:50:51 2012 516061624 blocks of size 1024. 489151420 blocks available smb: \blah\> mkdir Test smb: \blah\> ls . D 0 Mon Dec 31 15:48:55 2012 .. D 0 Fri Dec 28 11:50:51 2012 Test D 0 Mon Dec 31 15:48:55 2012 516061624 blocks of size 1024. 489151412 blocks available smb: \blah\> rmdir Test NT_STATUS_INVALID_HANDLE removing remote directory file \blah\Test smb: \blah\> ls . D 0 Mon Dec 31 15:49:01 2012 .. D 0 Fri Dec 28 11:50:51 2012 516061624 blocks of size 1024. 489151420 blocks available smb: \blah\> During this operation, smbd throws those lines into log (timestamps removed for clarity): smbd[10578]: ../source3/smbd/close.c:1255(close_directory) smbd[10578]: Could not close dir! fname=blah/Test, fd=-1, err=9=Bad file descriptor If I do this on a share without scannedonly VFS, everything works without errors. Did I forgot about something? Regards