summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/cifsglob.h
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.com>2024-02-24 16:57:14 -0300
committerSteve French <stfrench@microsoft.com>2024-03-10 19:33:58 -0500
commit1e5f4240714bb238d2d17c7e14e5fb45c9140665 (patch)
tree7aa8a7d8968c4bdf2452ec823aff48354c9b1627 /fs/smb/client/cifsglob.h
parent8bd25b61c5a55bc769c6608e9ce95860759acdcb (diff)
downloadlinux-stable-1e5f4240714bb238d2d17c7e14e5fb45c9140665.tar.gz
linux-stable-1e5f4240714bb238d2d17c7e14e5fb45c9140665.tar.bz2
linux-stable-1e5f4240714bb238d2d17c7e14e5fb45c9140665.zip
smb: client: return reparse type in /proc/mounts
Add support for returning reparse mount option in /proc/mounts. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202402262152.YZOwDlCM-lkp@intel.com/ Signed-off-by: Paulo Alcantara <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsglob.h')
-rw-r--r--fs/smb/client/cifsglob.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h
index 3afae8bf476d..a0506a45eae3 100644
--- a/fs/smb/client/cifsglob.h
+++ b/fs/smb/client/cifsglob.h
@@ -159,6 +159,18 @@ enum cifs_reparse_type {
CIFS_REPARSE_TYPE_DEFAULT = CIFS_REPARSE_TYPE_NFS,
};
+static inline const char *cifs_reparse_type_str(enum cifs_reparse_type type)
+{
+ switch (type) {
+ case CIFS_REPARSE_TYPE_NFS:
+ return "nfs";
+ case CIFS_REPARSE_TYPE_WSL:
+ return "wsl";
+ default:
+ return "unknown";
+ }
+}
+
struct session_key {
unsigned int len;
char *response;