smb3: Add new parm "nodelete"
authorSteve French <stfrench@microsoft.com>
Tue, 19 May 2020 08:06:57 +0000 (03:06 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 1 Jun 2020 05:10:18 +0000 (00:10 -0500)
commit82e9367c43890cb6a870f700c9180c7eb2035684
treee20ed39184faa2429dedfbfb534542b488fc4deb
parentb2ca6c2c9eddc41c09e49e8e83f8208bd80fdb8e
smb3: Add new parm "nodelete"

In order to handle workloads where it is important to make sure that
a buggy app did not delete content on the drive, the new mount option
"nodelete" allows standard permission checks on the server to work,
but prevents on the client any attempts to unlink a file or delete
a directory on that mount point.  This can be helpful when running
a little understood app on a network mount that contains important
content that should not be deleted.

Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/inode.c