aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/v9fs.h
diff options
context:
space:
mode:
authorLatchesar Ionkov <lucho@ionkov.net>2007-10-17 15:31:07 -0400
committerEric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com>2007-10-17 15:31:07 -0400
commitbd32b82df9876af439f1760a599c0e2da9198bda (patch)
tree87b5c2bf165cae258969817f1875259278ab066f /fs/9p/v9fs.h
parent2405669b253670467c5c4b4effd160881bf4fbb7 (diff)
9p: rename uid and gid parameters
Change the names of 'uid' and 'gid' parameters to the more appropriate 'dfltuid' and 'dfltgid'. This also sets the default uid/gid to -2 (aka nfsnobody) Signed-off-by: Latchesar Ionkov <lucho@ionkov.net> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/v9fs.h')
-rw-r--r--fs/9p/v9fs.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h
index 804b3ef8feab..8e0999b3d0cc 100644
--- a/fs/9p/v9fs.h
+++ b/fs/9p/v9fs.h
@@ -38,8 +38,8 @@ struct v9fs_session_info {
38 char *options; /* copy of mount options */ 38 char *options; /* copy of mount options */
39 char *name; /* user name to mount as */ 39 char *name; /* user name to mount as */
40 char *remotename; /* name of remote hierarchy being mounted */ 40 char *remotename; /* name of remote hierarchy being mounted */
41 unsigned int uid; /* default uid/muid for legacy support */ 41 unsigned int dfltuid; /* default uid/muid for legacy support */
42 unsigned int gid; /* default gid for legacy support */ 42 unsigned int dfltgid; /* default gid for legacy support */
43 struct p9_trans_module *trans; /* 9p transport */ 43 struct p9_trans_module *trans; /* 9p transport */
44 struct p9_client *clnt; /* 9p client */ 44 struct p9_client *clnt; /* 9p client */
45 struct dentry *debugfs_dir; 45 struct dentry *debugfs_dir;
@@ -67,9 +67,11 @@ void v9fs_session_cancel(struct v9fs_session_info *v9ses);
67#define V9FS_MAGIC 0x01021997 67#define V9FS_MAGIC 0x01021997
68 68
69/* other default globals */ 69/* other default globals */
70#define V9FS_PORT 564 70#define V9FS_PORT 564
71#define V9FS_DEFUSER "nobody" 71#define V9FS_DEFUSER "nobody"
72#define V9FS_DEFANAME "" 72#define V9FS_DEFANAME ""
73#define V9FS_DEFUID (-2)
74#define V9FS_DEFGID (-2)
73 75
74static inline struct v9fs_session_info *v9fs_inode2v9ses(struct inode *inode) 76static inline struct v9fs_session_info *v9fs_inode2v9ses(struct inode *inode)
75{ 77{