summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2proto.h
diff options
context:
space:
mode:
authorSteve French2018-06-15 04:56:32 +0200
committerSteve French2018-06-15 09:38:08 +0200
commitbea851b8babe6c87c36e97c9de0dd0bea0dd5802 (patch)
tree96f368fbb78d6b4a61e9f8174e35372ea806d240 /fs/cifs/smb2proto.h
parentcifs: Fix kernel oops when traceSMB is enabled (diff)
downloadkernel-qcow2-linux-bea851b8babe6c87c36e97c9de0dd0bea0dd5802.tar.gz
kernel-qcow2-linux-bea851b8babe6c87c36e97c9de0dd0bea0dd5802.tar.xz
kernel-qcow2-linux-bea851b8babe6c87c36e97c9de0dd0bea0dd5802.zip
smb3: Fix mode on mkdir on smb311 mounts
mkdir was not passing the mode on smb3.11 mounts with posix extensions Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r--fs/cifs/smb2proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h
index c84020057bd8..78371c1a6503 100644
--- a/fs/cifs/smb2proto.h
+++ b/fs/cifs/smb2proto.h
@@ -79,6 +79,10 @@ extern int smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
struct cifs_sb_info *cifs_sb, bool set_alloc);
extern int smb2_set_file_info(struct inode *inode, const char *full_path,
FILE_BASIC_INFO *buf, const unsigned int xid);
+extern int smb311_posix_mkdir(const unsigned int xid, struct inode *inode,
+ umode_t mode, struct cifs_tcon *tcon,
+ const char *full_path,
+ struct cifs_sb_info *cifs_sb);
extern int smb2_mkdir(const unsigned int xid, struct cifs_tcon *tcon,
const char *name, struct cifs_sb_info *cifs_sb);
extern void smb2_mkdir_setinfo(struct inode *inode, const char *full_path,