diff options
Diffstat (limited to 'fs/9p/v9fs.h')
-rw-r--r-- | fs/9p/v9fs.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h index 8e0999b3d0cc..db4b4193f2e2 100644 --- a/fs/9p/v9fs.h +++ b/fs/9p/v9fs.h | |||
@@ -36,10 +36,11 @@ struct v9fs_session_info { | |||
36 | unsigned int cache; /* cache mode */ | 36 | unsigned int cache; /* cache mode */ |
37 | 37 | ||
38 | char *options; /* copy of mount options */ | 38 | char *options; /* copy of mount options */ |
39 | char *name; /* user name to mount as */ | 39 | char *uname; /* user name to mount as */ |
40 | char *remotename; /* name of remote hierarchy being mounted */ | 40 | char *aname; /* name of remote hierarchy being mounted */ |
41 | unsigned int dfltuid; /* default uid/muid for legacy support */ | 41 | unsigned int dfltuid; /* default uid/muid for legacy support */ |
42 | unsigned int dfltgid; /* default gid for legacy support */ | 42 | unsigned int dfltgid; /* default gid for legacy support */ |
43 | u32 uid; /* if ACCESS_SINGLE, the uid that has access */ | ||
43 | struct p9_trans_module *trans; /* 9p transport */ | 44 | struct p9_trans_module *trans; /* 9p transport */ |
44 | struct p9_client *clnt; /* 9p client */ | 45 | struct p9_client *clnt; /* 9p client */ |
45 | struct dentry *debugfs_dir; | 46 | struct dentry *debugfs_dir; |
@@ -47,7 +48,11 @@ struct v9fs_session_info { | |||
47 | 48 | ||
48 | /* session flags */ | 49 | /* session flags */ |
49 | enum { | 50 | enum { |
50 | V9FS_EXTENDED, | 51 | V9FS_EXTENDED = 0x01, /* 9P2000.u */ |
52 | V9FS_ACCESS_MASK = 0x06, /* access mask */ | ||
53 | V9FS_ACCESS_SINGLE = 0x02, /* only one user can access the files */ | ||
54 | V9FS_ACCESS_USER = 0x04, /* attache per user */ | ||
55 | V9FS_ACCESS_ANY = 0x06, /* use the same attach for all users */ | ||
51 | }; | 56 | }; |
52 | 57 | ||
53 | /* possible values of ->cache */ | 58 | /* possible values of ->cache */ |