diff options
author | Steve French <smfrench@gmail.com> | 2016-05-13 04:20:36 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2016-05-17 21:09:44 +0200 |
commit | 897fba1172d637d344f009d700f7eb8a1fa262f1 (patch) | |
tree | a57ae696c9ce5d897d3c263dd020cf1f3e33cf7b /net/x25 | |
parent | Update cifs.ko version to 2.09 (diff) | |
download | linux-897fba1172d637d344f009d700f7eb8a1fa262f1.tar.xz linux-897fba1172d637d344f009d700f7eb8a1fa262f1.zip |
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>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions