Steve French 897fba1172 remove directory incorrectly tries to set delete on close on non-empty directories
Wrong return code was being returned on SMB3 rmdir of
non-empty directory.

For SMB3 (unlike for cifs), we attempt to delete a directory by
set of delete on close flag on the open. Windows clients set
this flag via a set info (SET_FILE_DISPOSITION to set this flag)
which properly checks if the directory is empty.

With this patch on smb3 mounts we correctly return
 "DIRECTORY NOT EMPTY"
on attempts to remove a non-empty directory.

Signed-off-by: Steve French <steve.french@primarydata.com>
CC: Stable <stable@vger.kernel.org>
Acked-by: Sachin Prabhu <sprabhu@redhat.com>
2016-05-17 14:09:44 -05:00
..
2015-05-20 13:12:51 -05:00
2016-05-02 19:49:31 -04:00
2016-05-17 14:09:34 -05:00
2016-05-17 14:09:33 -05:00
2013-11-08 05:57:46 +09:00
2015-12-07 23:11:33 -05:00
2015-06-27 20:23:32 -07:00
2014-12-14 14:55:57 -06:00
2016-05-17 14:09:33 -05:00
2015-11-03 10:10:36 -06:00
2012-07-24 10:25:13 -05:00
2016-01-27 20:35:53 +08:00
2013-09-08 14:54:24 -05:00