summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2016-05-12 21:20:36 -0500
committerBen Hutchings <ben@decadent.org.uk>2016-08-22 22:38:01 +0100
commit496bc4a1907f520e4afc0f631b18c90f7faafa9b (patch)
treeedecb713b166de9974f7dd63bb2e1b102bd2745b /include/linux
parentd1c774241e28b4281f49c1cb9e66d0206c4a0f30 (diff)
remove directory incorrectly tries to set delete on close on non-empty directories
commit 897fba1172d637d344f009d700f7eb8a1fa262f1 upstream. 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> Acked-by: Sachin Prabhu <sprabhu@redhat.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions