]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/patches/05-ignore-quota-option.patch
Imported Debian patch 1.1.1-11
[nfs-utils.git] / debian / patches / 05-ignore-quota-option.patch
1 The mount(5) man page states that the noquota, quota, usrquota and
2 grpquota options are ignored. (They are, however, used by the quota
3 tools, so having them in fstab can be useful.) Make mount.nfs ignore
4 them properly, matching the man page. There are a few aliases (like
5 usrjquota) that are parsed by quota, but as these are not documented
6 nor seem to be widely used, they are not included.
7
8 Index: nfs-utils-1.1.1/utils/mount/mount.c
9 ===================================================================
10 --- nfs-utils-1.1.1.orig/utils/mount/mount.c
11 +++ nfs-utils-1.1.1/utils/mount/mount.c
12 @@ -130,6 +130,10 @@ static const struct opt_map opt_map[] = 
13    { "diratime", 0, 1, MS_NODIRATIME },  /* Update dir access times */
14    { "nodiratime", 0, 0, MS_NODIRATIME },/* Do not update dir access times */
15  #endif
16 +  { "noquota", 0, 0, MS_DUMMY },        /* Don't enforce quota */
17 +  { "quota", 0, 0, MS_DUMMY },          /* Enforce user quota */
18 +  { "usrquota", 0, 0, MS_DUMMY },       /* Enforce user quota */
19 +  { "grpquota", 0, 0, MS_DUMMY },       /* Enforce group quota */
20    { NULL,      0, 0, 0         }
21  };
22