]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/patches/05-ignore-quota-option.patch
Imported Debian patch 1.1.0-11
[nfs-utils.git] / debian / patches / 05-ignore-quota-option.patch
diff --git a/debian/patches/05-ignore-quota-option.patch b/debian/patches/05-ignore-quota-option.patch
new file mode 100644 (file)
index 0000000..2985938
--- /dev/null
@@ -0,0 +1,22 @@
+The mount(5) man page states that the noquota, quota, usrquota and
+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.
+
+Index: nfs-utils-1.1.0/utils/mount/mount.c
+===================================================================
+--- nfs-utils-1.1.0.orig/utils/mount/mount.c
++++ nfs-utils-1.1.0/utils/mount/mount.c
+@@ -132,6 +132,10 @@ static const struct opt_map opt_map[] = 
+   { "diratime", 0, 1, MS_NODIRATIME },  /* Update dir access times */
+   { "nodiratime", 0, 0, MS_NODIRATIME },/* Do not update dir access times */
+ #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         }
+ };