aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2009-02-19 05:32:35 -0500
committerSteven Whitehouse <steve@dolmen.chygwyn.com>2009-03-24 07:21:23 -0400
commitb9a9694570756e689068f0450cf3c570f74b2b01 (patch)
tree7f16f153d04cf1ce9f5fb2f07a9e7f5a0182addb
parent223b2b889f379dcea9cef722336a57e8b398bc95 (diff)
GFS2: Support quota/noquota mount arguments
This adds support for "quota" and "noquota" mount options in addition to the existing "quota=on/off/account" so that we are compatible with the names by which these options are more generally known. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
-rw-r--r--fs/gfs2/mount.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/gfs2/mount.c b/fs/gfs2/mount.c
index ee69701a7777..f7e8527a21e0 100644
--- a/fs/gfs2/mount.c
+++ b/fs/gfs2/mount.c
@@ -36,6 +36,8 @@ enum {
36 Opt_quota_off, 36 Opt_quota_off,
37 Opt_quota_account, 37 Opt_quota_account,
38 Opt_quota_on, 38 Opt_quota_on,
39 Opt_quota,
40 Opt_noquota,
39 Opt_suiddir, 41 Opt_suiddir,
40 Opt_nosuiddir, 42 Opt_nosuiddir,
41 Opt_data_writeback, 43 Opt_data_writeback,
@@ -62,6 +64,8 @@ static const match_table_t tokens = {
62 {Opt_quota_off, "quota=off"}, 64 {Opt_quota_off, "quota=off"},
63 {Opt_quota_account, "quota=account"}, 65 {Opt_quota_account, "quota=account"},
64 {Opt_quota_on, "quota=on"}, 66 {Opt_quota_on, "quota=on"},
67 {Opt_quota, "quota"},
68 {Opt_noquota, "noquota"},
65 {Opt_suiddir, "suiddir"}, 69 {Opt_suiddir, "suiddir"},
66 {Opt_nosuiddir, "nosuiddir"}, 70 {Opt_nosuiddir, "nosuiddir"},
67 {Opt_data_writeback, "data=writeback"}, 71 {Opt_data_writeback, "data=writeback"},
@@ -138,12 +142,14 @@ int gfs2_mount_args(struct gfs2_sbd *sdp, struct gfs2_args *args, char *options)
138 args->ar_posix_acl = 0; 142 args->ar_posix_acl = 0;
139 break; 143 break;
140 case Opt_quota_off: 144 case Opt_quota_off:
145 case Opt_noquota:
141 args->ar_quota = GFS2_QUOTA_OFF; 146 args->ar_quota = GFS2_QUOTA_OFF;
142 break; 147 break;
143 case Opt_quota_account: 148 case Opt_quota_account:
144 args->ar_quota = GFS2_QUOTA_ACCOUNT; 149 args->ar_quota = GFS2_QUOTA_ACCOUNT;
145 break; 150 break;
146 case Opt_quota_on: 151 case Opt_quota_on:
152 case Opt_quota:
147 args->ar_quota = GFS2_QUOTA_ON; 153 args->ar_quota = GFS2_QUOTA_ON;
148 break; 154 break;
149 case Opt_suiddir: 155 case Opt_suiddir: