summaryrefslogtreecommitdiff
path: root/fs/cifs/dfs.h
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@cjr.nz>2022-10-05 00:41:27 +0300
committerSteve French <stfrench@microsoft.com>2022-12-19 17:03:11 +0300
commitabdb1742a312388651f04ca04e6e2ec2b0af5288 (patch)
tree9c2bede0e6486973dbd2288af1821e10342428e7 /fs/cifs/dfs.h
parent9fd29a5bae6e8f94b410374099a6fddb253d2d5f (diff)
downloadlinux-abdb1742a312388651f04ca04e6e2ec2b0af5288.tar.xz
cifs: get rid of mount options string parsing
After switching to filesystem context support, we no longer need to handle mount options string when chasing dfs referrals. Now, we set the new values directly into smb3_fs_context. Start working on a separate source file to handle most dfs related mount functions as connect.c has already became too big. The remaining functions will be moved gradually in follow-up patches. Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/dfs.h')
-rw-r--r--fs/cifs/dfs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/cifs/dfs.h b/fs/cifs/dfs.h
new file mode 100644
index 000000000000..af09903b435a
--- /dev/null
+++ b/fs/cifs/dfs.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (c) 2022 Paulo Alcantara <palcantara@suse.de>
+ */
+
+#ifndef _CIFS_DFS_H
+#define _CIFS_DFS_H
+
+#include "cifsglob.h"
+#include "fs_context.h"
+
+int dfs_parse_target_referral(const char *full_path, const struct dfs_info3_param *ref,
+ struct smb3_fs_context *ctx);
+
+
+#endif /* _CIFS_DFS_H */