patch-2.2.18 linux/include/linux/smb_mount.h

Next file: linux/include/linux/smp.h
Previous file: linux/include/linux/smb_fs_sb.h
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/linux/smb_mount.h linux/include/linux/smb_mount.h
@@ -11,7 +11,7 @@
 
 #include <linux/types.h>
 
-#define SMB_MOUNT_VERSION 6
+#define SMB_MOUNT_VERSION	6
 
 struct smb_mount_data {
 	int version;
@@ -21,5 +21,29 @@
 	__kernel_mode_t file_mode;
 	__kernel_mode_t dir_mode;
 };
+
+
+#ifdef __KERNEL__
+
+/* flags */
+#define SMB_MOUNT_WIN95		0x0001  /* Win 95 server */
+#define SMB_MOUNT_OLDATTR	0x0002  /* Use core getattr (Win 95 speedup) */
+#define SMB_MOUNT_DIRATTR	0x0004  /* Use find_first for getattr */
+#define SMB_MOUNT_CASE		0x0008  /* Be case sensitive */
+
+struct smb_mount_data_kernel {
+	int _version;
+	__kernel_uid_t mounted_uid; /* Who may umount() this filesystem? */
+	__kernel_uid_t uid;
+	__kernel_gid_t gid;
+	__kernel_mode_t file_mode;
+	__kernel_mode_t dir_mode;
+
+	u32 flags;
+
+	struct smb_nls_codepage codepage;
+};
+
+#endif
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)