summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-06-23 02:26:35 +0200
committerSteve French <sfrench@hera.kernel.org>2005-06-23 02:26:35 +0200
commitac67055ef2378ea95c34b593ddf9d0a0737a240a (patch)
tree78f76cde63f158b318a57a3972a77731d8fb0ef6 /fs/cifs/cifsglob.h
parent[CIFS] Add stats for findfirst, findnext, findclose (diff)
downloadlinux-ac67055ef2378ea95c34b593ddf9d0a0737a240a.tar.xz
linux-ac67055ef2378ea95c34b593ddf9d0a0737a240a.zip
[CIFS] POSIX extensions, SetFSInfo added
Signed-off-by: Steve French@sfrench@us.ibm.com Signed-off-by: Jeremy Allison (jra@samba.org)
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 4ed9c13fff55..d3773e57acf9 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -309,6 +309,13 @@ CIFS_SB(struct super_block *sb)
return sb->s_fs_info;
}
+static inline const char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb)
+{
+ if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)
+ return '/';
+ else
+ return '\\';
+}
/* one of these for every pending CIFS request to the server */
struct mid_q_entry {