summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/cifsproto.h
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.com>2023-11-21 20:12:55 -0300
committerSteve French <stfrench@microsoft.com>2023-11-23 11:46:05 -0600
commitb0348e459c836abdb0f4b967e006d15c77cf1c87 (patch)
tree2219d7a8b96d8e4223663e948bdaea9275c33434 /fs/smb/client/cifsproto.h
parent45e724022e2704b5a5193fd96f378822b0448e07 (diff)
downloadlinux-stable-b0348e459c836abdb0f4b967e006d15c77cf1c87.tar.gz
linux-stable-b0348e459c836abdb0f4b967e006d15c77cf1c87.tar.bz2
linux-stable-b0348e459c836abdb0f4b967e006d15c77cf1c87.zip
smb: client: introduce cifs_sfu_make_node()
Remove duplicate code and add new helper for creating special files in SFU (Services for UNIX) format that can be shared by SMB1+ code. Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsproto.h')
-rw-r--r--fs/smb/client/cifsproto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/smb/client/cifsproto.h b/fs/smb/client/cifsproto.h
index c00f84420559..46feaa0880bd 100644
--- a/fs/smb/client/cifsproto.h
+++ b/fs/smb/client/cifsproto.h
@@ -668,6 +668,9 @@ char *extract_sharename(const char *unc);
int parse_reparse_point(struct reparse_data_buffer *buf,
u32 plen, struct cifs_sb_info *cifs_sb,
bool unicode, struct cifs_open_info_data *data);
+int cifs_sfu_make_node(unsigned int xid, struct inode *inode,
+ struct dentry *dentry, struct cifs_tcon *tcon,
+ const char *full_path, umode_t mode, dev_t dev);
#ifdef CONFIG_CIFS_DFS_UPCALL
static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses,