summaryrefslogtreecommitdiff
path: root/include/linux/ncp.h
diff options
context:
space:
mode:
authorPetr Vandrovec <vandrove@vc.cvut.cz>2002-07-25 00:48:08 +0200
committerPetr Vandrovec <vandrove@vc.cvut.cz>2002-07-25 00:48:08 +0200
commit41783de41528808b064bf5bc617c2ddcd7d7061a (patch)
treea83a4b3e91b09912bc27c38e1ca15247c017d2d9 /include/linux/ncp.h
parent3b89dbbd78bb638c2691c5752ed0d54fd1a73fa1 (diff)
parent275d178366f4df0dc12fe79f72c732d6a369a07d (diff)
Merge bk://linux.bkbits.net/linux-2.5 into vc.cvut.cz:/bk/repo/ncpfs
Diffstat (limited to 'include/linux/ncp.h')
-rw-r--r--include/linux/ncp.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/include/linux/ncp.h b/include/linux/ncp.h
index e6cdfe1b0748..fa20708267b9 100644
--- a/include/linux/ncp.h
+++ b/include/linux/ncp.h
@@ -44,7 +44,7 @@ struct ncp_reply_header {
};
#define NCP_VOLNAME_LEN (16)
-#define NCP_NUMBER_OF_VOLUMES (64)
+#define NCP_NUMBER_OF_VOLUMES (256)
struct ncp_volume_info {
__u32 total_blocks;
__u32 free_blocks;
@@ -85,6 +85,18 @@ struct ncp_volume_info {
#define RIM_ALL (ntohl(0xFF0F0000L))
#define RIM_COMPRESSED_INFO (ntohl(0x00000080L))
+/* Defines for NSInfoBitMask */
+#define NSIBM_NFS_NAME 0x0001
+#define NSIBM_NFS_MODE 0x0002
+#define NSIBM_NFS_GID 0x0004
+#define NSIBM_NFS_NLINKS 0x0008
+#define NSIBM_NFS_RDEV 0x0010
+#define NSIBM_NFS_LINK 0x0020
+#define NSIBM_NFS_CREATED 0x0040
+#define NSIBM_NFS_UID 0x0080
+#define NSIBM_NFS_ACSFLAG 0x0100
+#define NSIBM_NFS_MYFLAG 0x0200
+
/* open/create modes */
#define OC_MODE_OPEN 0x01
#define OC_MODE_TRUNCATE 0x02
@@ -109,6 +121,11 @@ struct ncp_volume_info {
#define AR_OPEN_COMPRESSED 0x0100
#endif
+struct nw_nfs_info {
+ __u32 mode;
+ __u32 rdev;
+};
+
struct nw_info_struct {
__u32 spaceAlloc __attribute__((packed));
__u32 attributes __attribute__((packed));
@@ -136,6 +153,10 @@ struct nw_info_struct {
__u32 NSCreator __attribute__((packed));
__u8 nameLen __attribute__((packed));
__u8 entryName[256] __attribute__((packed));
+ /* libncp may depend on there being nothing after entryName */
+#ifdef __KERNEL__
+ struct nw_nfs_info nfs;
+#endif
};
/* modify mask - use with MODIFY_DOS_INFO structure */