aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/9p/9p.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-01-29 19:18:50 -0500
committerEric W. Biederman <ebiederm@xmission.com>2013-02-12 06:19:31 -0500
commit447c50943fd008755122c7a62bac068e73c1cf2c (patch)
tree426cd65ce6dc68aebd9185602560c7c30eb48272 /include/net/9p/9p.h
parentf791f7c5e354870eaa5e31c4038c6723683283f1 (diff)
9p: Modify the stat structures to use kuid_t and kgid_t
9p has thre strucrtures that can encode inode stat information. Modify all of those structures to contain kuid_t and kgid_t values. Modify he wire encoders and decoders of those structures to use 'u' and 'g' instead of 'd' in the format string where uids and gids are present. This results in all kuid and kgid conversion to and from on the wire values being performed by the same code in protocol.c where the client is known at the time of the conversion. Cc: Eric Van Hensbergen <ericvh@gmail.com> Cc: Ron Minnich <rminnich@gmail.com> Cc: Latchesar Ionkov <lucho@ionkov.net> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/net/9p/9p.h')
-rw-r--r--include/net/9p/9p.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h
index 7184853ca360..27dfe85772b1 100644
--- a/include/net/9p/9p.h
+++ b/include/net/9p/9p.h
@@ -407,17 +407,17 @@ struct p9_wstat {
407 char *gid; 407 char *gid;
408 char *muid; 408 char *muid;
409 char *extension; /* 9p2000.u extensions */ 409 char *extension; /* 9p2000.u extensions */
410 u32 n_uid; /* 9p2000.u extensions */ 410 kuid_t n_uid; /* 9p2000.u extensions */
411 u32 n_gid; /* 9p2000.u extensions */ 411 kgid_t n_gid; /* 9p2000.u extensions */
412 u32 n_muid; /* 9p2000.u extensions */ 412 kuid_t n_muid; /* 9p2000.u extensions */
413}; 413};
414 414
415struct p9_stat_dotl { 415struct p9_stat_dotl {
416 u64 st_result_mask; 416 u64 st_result_mask;
417 struct p9_qid qid; 417 struct p9_qid qid;
418 u32 st_mode; 418 u32 st_mode;
419 u32 st_uid; 419 kuid_t st_uid;
420 u32 st_gid; 420 kgid_t st_gid;
421 u64 st_nlink; 421 u64 st_nlink;
422 u64 st_rdev; 422 u64 st_rdev;
423 u64 st_size; 423 u64 st_size;
@@ -471,8 +471,8 @@ struct p9_stat_dotl {
471struct p9_iattr_dotl { 471struct p9_iattr_dotl {
472 u32 valid; 472 u32 valid;
473 u32 mode; 473 u32 mode;
474 u32 uid; 474 kuid_t uid;
475 u32 gid; 475 kgid_t gid;
476 u64 size; 476 u64 size;
477 u64 atime_sec; 477 u64 atime_sec;
478 u64 atime_nsec; 478 u64 atime_nsec;