aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2inode.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2018-08-28 16:14:21 -0500
committerSteve French <stfrench@microsoft.com>2018-10-23 21:16:04 -0500
commit4d5bdf28690a304e089ce750efc8b7dd718945c7 (patch)
tree037e6e797120526140572fe86384b96d7556a9e9 /fs/cifs/smb2inode.c
parentcifs: create a define for the max number of iov we need for a SMB2 set_info (diff)
downloadlinux-dev-4d5bdf28690a304e089ce750efc8b7dd718945c7.tar.xz
linux-dev-4d5bdf28690a304e089ce750efc8b7dd718945c7.zip
SMB3: Backup intent flag missing from compounded ops
When "backup intent" is requested on the mount (e.g. backupuid or backupgid mount options), the corresponding flag was missing from some of the new compounding operations as well (now that open_query_close is gone). Related to kernel bugzilla #200953 Reported-and-tested-by: <whh@rubrik.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs/smb2inode.c')
-rw-r--r--fs/cifs/smb2inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/smb2inode.c b/fs/cifs/smb2inode.c
index 247cc0b32539..c0b3622a7b53 100644
--- a/fs/cifs/smb2inode.c
+++ b/fs/cifs/smb2inode.c
@@ -83,6 +83,8 @@ smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
oparms.desired_access = desired_access;
oparms.disposition = create_disposition;
oparms.create_options = create_options;
+ if (backup_cred(cifs_sb))
+ oparms.create_options |= CREATE_OPEN_BACKUP_INTENT;
oparms.fid = &fid;
oparms.reconnect = false;