summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/cpuidle.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2016-05-12 21:20:36 -0500
committerSasha Levin <sasha.levin@oracle.com>2016-06-06 19:12:25 -0400
commitcde02e3a5b143885f6b68b7e687eb4326d5da99d (patch)
tree9de60d8d32334f50f9dcd8ce571b9c383a6afa45 /drivers/cpuidle/cpuidle.c
parentb6044542f162483636dae70bb691d50e483fb438 (diff)
remove directory incorrectly tries to set delete on close on non-empty directories
[ Upstream commit 897fba1172d637d344f009d700f7eb8a1fa262f1 ] 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> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'drivers/cpuidle/cpuidle.c')
0 files changed, 0 insertions, 0 deletions