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>
This commit is contained in:
parent
601e625587
commit
3e63516c82
|
@ -1503,9 +1503,9 @@ static void exp_flags(struct seq_file *m, int flag, int fsid,
|
|||
if (flag & NFSEXP_FSID)
|
||||
seq_printf(m, ",fsid=%d", fsid);
|
||||
if (anonu != (uid_t)-2 && anonu != (0x10000-2))
|
||||
seq_printf(m, ",sanonuid=%d", anonu);
|
||||
seq_printf(m, ",anonuid=%u", anonu);
|
||||
if (anong != (gid_t)-2 && anong != (0x10000-2))
|
||||
seq_printf(m, ",sanongid=%d", anong);
|
||||
seq_printf(m, ",anongid=%u", anong);
|
||||
if (fsloc && fsloc->locations_count > 0) {
|
||||
char *loctype = (fsloc->migrated) ? "refer" : "replicas";
|
||||
int i;
|
||||
|
|
Loading…
Reference in New Issue