diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2007-07-21 07:37:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-21 20:49:14 -0400 |
commit | 3e63516c826454c964eefdd24d33e188064c6679 (patch) | |
tree | 3a22bd550f2febb703af566b4c41a952d67aa8fd /fs | |
parent | 601e625587bf92c9f370d74a15c4e43bc6468f9f (diff) |
knfsd: fix typo in export display, print uid and gid as unsigned
For display purposes, treat uid's and gid's as unsigned ints for now.
Also fix a typo.
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/export.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 6ab8de40904c..2d295dda4c1d 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c | |||
@@ -1503,9 +1503,9 @@ static void exp_flags(struct seq_file *m, int flag, int fsid, | |||
1503 | if (flag & NFSEXP_FSID) | 1503 | if (flag & NFSEXP_FSID) |
1504 | seq_printf(m, ",fsid=%d", fsid); | 1504 | seq_printf(m, ",fsid=%d", fsid); |
1505 | if (anonu != (uid_t)-2 && anonu != (0x10000-2)) | 1505 | if (anonu != (uid_t)-2 && anonu != (0x10000-2)) |
1506 | seq_printf(m, ",sanonuid=%d", anonu); | 1506 | seq_printf(m, ",anonuid=%u", anonu); |
1507 | if (anong != (gid_t)-2 && anong != (0x10000-2)) | 1507 | if (anong != (gid_t)-2 && anong != (0x10000-2)) |
1508 | seq_printf(m, ",sanongid=%d", anong); | 1508 | seq_printf(m, ",anongid=%u", anong); |
1509 | if (fsloc && fsloc->locations_count > 0) { | 1509 | if (fsloc && fsloc->locations_count > 0) { |
1510 | char *loctype = (fsloc->migrated) ? "refer" : "replicas"; | 1510 | char *loctype = (fsloc->migrated) ? "refer" : "replicas"; |
1511 | int i; | 1511 | int i; |