All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Properly ignore quota options
@ 2007-07-18 17:09 Steinar H. Gunderson
  2007-07-18 17:23 ` Chuck Lever
  2007-09-29 13:08 ` Steinar H. Gunderson
  0 siblings, 2 replies; 3+ messages in thread
From: Steinar H. Gunderson @ 2007-07-18 17:09 UTC (permalink / raw)
  To: nfs

Hi,

Now that NFS mounting has been taken over by nfs-utils, it seems like I've
gotten a few bugs on my hands. The included patch is based on a user
suggestion from about a year ago. It would be great if someone could also
check out these two bugs:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=301955
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=301953


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.

Signed-off-by: Steinar H. Gunderson <sesse@debian.org>

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		}
 };
 
/* Steinar */ 
-- 
Homepage: http://www.sesse.net/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Properly ignore quota options
  2007-07-18 17:09 [PATCH] Properly ignore quota options Steinar H. Gunderson
@ 2007-07-18 17:23 ` Chuck Lever
  2007-09-29 13:08 ` Steinar H. Gunderson
  1 sibling, 0 replies; 3+ messages in thread
From: Chuck Lever @ 2007-07-18 17:23 UTC (permalink / raw)
  To: Steinar H. Gunderson; +Cc: nfs

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

Steinar H. Gunderson wrote:
> Hi,
> 
> Now that NFS mounting has been taken over by nfs-utils, it seems like I've
> gotten a few bugs on my hands. The included patch is based on a user
> suggestion from about a year ago. It would be great if someone could also
> check out these two bugs:
> 
>   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=301955
>   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=301953

My review of the utils/mount source code also suggests that background 
mounting is not working at all in mount.nfs.  I'm thinking this is 
something that should be addressed before we get to the string-ified 
mount option support.  I included a patch in my recent clean-up series 
that might help get BG working again (similar in nature to your umount 
return code patch).

But I suspect that there is more to do here.  I haven't studied how the 
background mount process is forked... I suspect mount.nfs is relying on 
/bin/mount to do it.

I'm happy to track this down and submit some fixes for consideration.

[ patch to ignore quota-related mount options snipped...
   looks OK to me ]

[-- Attachment #2: chuck.lever.vcf --]
[-- Type: text/x-vcard, Size: 315 bytes --]

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
email;internet:chuck dot lever at nospam oracle dot com
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
version:2.1
end:vcard


[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Properly ignore quota options
  2007-07-18 17:09 [PATCH] Properly ignore quota options Steinar H. Gunderson
  2007-07-18 17:23 ` Chuck Lever
@ 2007-09-29 13:08 ` Steinar H. Gunderson
  1 sibling, 0 replies; 3+ messages in thread
From: Steinar H. Gunderson @ 2007-09-29 13:08 UTC (permalink / raw)
  To: nfs

On Wed, Jul 18, 2007 at 07:09:31PM +0200, Steinar H. Gunderson wrote:
> 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.
> 
> Signed-off-by: Steinar H. Gunderson <sesse@debian.org>

This patch was also dropped on the floor. Neil?

/* Steinar */ 
-- 
Homepage: http://www.sesse.net/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-29 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-18 17:09 [PATCH] Properly ignore quota options Steinar H. Gunderson
2007-07-18 17:23 ` Chuck Lever
2007-09-29 13:08 ` Steinar H. Gunderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.