]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
The mount(5) man page states that the noquota, quota, usrquota and
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 10 Mar 2008 18:49:31 +0000 (14:49 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 10 Mar 2008 18:49:31 +0000 (14:49 -0400)
grpquota options are ignored. (They are, however, used by the quota
tools, so having them in fstab can be useful.) Make mount.nfs ignore
them properly, matching the man page. There are a few aliases (like
usrjquota) that are parsed by quota, but as these are not documented
nor seem to be widely used, they are not included.

Signed-off-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/mount.c

index 403d6f43adeb4c0cd9b899ff3f35be32986c0a8c..839a3296214ac654aa5738bc33f004ba5003dc31 100644 (file)
@@ -136,6 +136,10 @@ static const struct opt_map opt_map[] = {
   { "norelatime", 0, 1, MS_RELATIME }, /* Update access time without regard
                       to mtime/ctime */
 #endif
+  { "noquota", 0, 0, MS_DUMMY },        /* Don't enforce quota */
+  { "quota", 0, 0, MS_DUMMY },          /* Enforce user quota */
+  { "usrquota", 0, 0, MS_DUMMY },       /* Enforce user quota */
+  { "grpquota", 0, 0, MS_DUMMY },       /* Enforce group quota */
   { NULL,      0, 0, 0         }
 };