diff options
| author | Hirofumi Ogawa <hirofumi@mail.parknet.co.jp> | 2003-10-05 21:02:14 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-10-05 21:02:14 -0700 |
| commit | 5163200e20bfe8cd43570a82fb29398dfce3a50c (patch) | |
| tree | af70f3793d5030957ad5e0764b2ad1048d75f48a | |
| parent | e85bed015dae6f9726b244015a7d9dd856249f9a (diff) | |
[PATCH] lib/parser: Use "%u" instead "%d" (5/6)
If original code uses the following,
opts->value = simple_strtoul(value, &value, 0);
if (*value)
return error;
It doesn't recognize negative value. So option format should use "%u".
| -rw-r--r-- | fs/affs/super.c | 10 | ||||
| -rw-r--r-- | fs/autofs/inode.c | 12 | ||||
| -rw-r--r-- | fs/autofs4/inode.c | 12 | ||||
| -rw-r--r-- | fs/ext2/super.c | 6 | ||||
| -rw-r--r-- | fs/ext3/super.c | 6 | ||||
| -rw-r--r-- | fs/fat/inode.c | 10 |
6 files changed, 28 insertions, 28 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index ef5537a03a31..6f8e2b953069 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c @@ -150,15 +150,15 @@ enum { }; static match_table_t tokens = { - {Opt_bs, "bs=%d"}, + {Opt_bs, "bs=%u"}, {Opt_mode, "mode=%o"}, {Opt_mufs, "mufs"}, {Opt_prefix, "prefix=%s"}, {Opt_protect, "protect"}, - {Opt_reserved, "reserved=%d"}, - {Opt_root, "root=%d"}, - {Opt_setgid, "setgid=%d"}, - {Opt_setuid, "setuid=%d"}, + {Opt_reserved, "reserved=%u"}, + {Opt_root, "root=%u"}, + {Opt_setgid, "setgid=%u"}, + {Opt_setuid, "setuid=%u"}, {Opt_verbose, "verbose"}, {Opt_volume, "volume=%s"}, {Opt_ignore, "grpquota"}, diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index f901bba09946..a50096dd1595 100644 --- a/fs/autofs/inode.c +++ b/fs/autofs/inode.c @@ -49,12 +49,12 @@ static struct super_operations autofs_sops = { enum {Opt_err, Opt_fd, Opt_uid, Opt_gid, Opt_pgrp, Opt_minproto, Opt_maxproto}; static match_table_t autofs_tokens = { - {Opt_fd, "fd=%d"}, - {Opt_uid, "uid=%d"}, - {Opt_gid, "gid=%d"}, - {Opt_pgrp, "pgrp=%d"}, - {Opt_minproto, "minproto=%d"}, - {Opt_maxproto, "maxproto=%d"}, + {Opt_fd, "fd=%u"}, + {Opt_uid, "uid=%u"}, + {Opt_gid, "gid=%u"}, + {Opt_pgrp, "pgrp=%u"}, + {Opt_minproto, "minproto=%u"}, + {Opt_maxproto, "maxproto=%u"}, {Opt_err, NULL} }; diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 8c9d598937b4..b375cfa89b41 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c @@ -98,12 +98,12 @@ static struct super_operations autofs4_sops = { enum {Opt_err, Opt_fd, Opt_uid, Opt_gid, Opt_pgrp, Opt_minproto, Opt_maxproto}; static match_table_t tokens = { - {Opt_fd, "fd=%d"}, - {Opt_uid, "uid=%d"}, - {Opt_gid, "gid=%d"}, - {Opt_pgrp, "pgrp=%d"}, - {Opt_minproto, "minproto=%d"}, - {Opt_maxproto, "maxproto=%d"}, + {Opt_fd, "fd=%u"}, + {Opt_uid, "uid=%u"}, + {Opt_gid, "gid=%u"}, + {Opt_pgrp, "pgrp=%u"}, + {Opt_minproto, "minproto=%u"}, + {Opt_maxproto, "maxproto=%u"}, {Opt_err, NULL} }; diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 4ecbd5ac548d..410f95252bdb 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -281,9 +281,9 @@ static match_table_t tokens = { {Opt_grpid, "bsdgroups"}, {Opt_nogrpid, "nogrpid"}, {Opt_nogrpid, "sysvgroups"}, - {Opt_resgid, "resgid=%d"}, - {Opt_resuid, "resuid=%d"}, - {Opt_sb, "sb=%d"}, + {Opt_resgid, "resgid=%u"}, + {Opt_resuid, "resuid=%u"}, + {Opt_sb, "sb=%u"}, {Opt_err_cont, "errors=continue"}, {Opt_err_panic, "errors=panic"}, {Opt_err_ro, "errors=remount-ro"}, diff --git a/fs/ext3/super.c b/fs/ext3/super.c index f93524850ee0..94b10ec1edcd 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c @@ -544,9 +544,9 @@ static match_table_t tokens = { {Opt_grpid, "bsdgroups"}, {Opt_nogrpid, "nogrpid"}, {Opt_nogrpid, "sysvgroups"}, - {Opt_resgid, "resgid=%d"}, - {Opt_resuid, "resuid=%d"}, - {Opt_sb, "sb=%d"}, + {Opt_resgid, "resgid=%u"}, + {Opt_resuid, "resuid=%u"}, + {Opt_sb, "sb=%u"}, {Opt_err_cont, "errors=continue"}, {Opt_err_panic, "errors=panic"}, {Opt_err_ro, "errors=remount-ro"}, diff --git a/fs/fat/inode.c b/fs/fat/inode.c index fb48ce486a84..72ed4f97a8ae 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -264,12 +264,12 @@ static match_table_t fat_tokens = { {Opt_check_r, "check=r"}, {Opt_check_s, "check=s"}, {Opt_check_n, "check=n"}, - {Opt_uid, "uid=%d"}, - {Opt_gid, "gid=%d"}, + {Opt_uid, "uid=%u"}, + {Opt_gid, "gid=%u"}, {Opt_umask, "umask=%o"}, {Opt_dmask, "dmask=%o"}, {Opt_fmask, "fmask=%o"}, - {Opt_codepage, "codepage=%d"}, + {Opt_codepage, "codepage=%u"}, {Opt_nocase, "nocase"}, {Opt_quiet, "quiet"}, {Opt_showexec, "showexec"}, @@ -281,8 +281,8 @@ static match_table_t fat_tokens = { {Opt_obsolate, "conv=b"}, {Opt_obsolate, "conv=t"}, {Opt_obsolate, "conv=a"}, - {Opt_obsolate, "fat=%d"}, - {Opt_obsolate, "blocksize=%d"}, + {Opt_obsolate, "fat=%u"}, + {Opt_obsolate, "blocksize=%u"}, {Opt_obsolate, "cvf_format=%20s"}, {Opt_obsolate, "cvf_options=%100s"}, {Opt_obsolate, "posix"}, |
