All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathan Scott <nathans@sgi.com>
To: "Steve French (IBM LTC)" <smfltc@us.ibm.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: quota woes
Date: Mon, 11 Aug 2003 11:24:21 +1000	[thread overview]
Message-ID: <20030811012421.GG9384@frodo> (raw)
In-Reply-To: <3F36A2EC.EC77B3FF@us.ibm.com>

On Sun, Aug 10, 2003 at 02:54:20PM -0500, Steve French (IBM LTC) wrote:
> Experimenting with Linux quotas for network filesystems is turning out
> to be painful.   I have not been able to experiment with the parms
> passed in from the quota calls invoked by the common Linux/Unix quota
> tools (quotacheck, quotaon, quotacheck) due to what looks like bugs in
> the Linux quota tools (the only source I could find for these tools was
> out on the sourceforge project).

That is the most uptodate source, and Jan actively maintains it.

> Even for the new xfs style quota
> interface they refuse to handle a deviceless (network) filesystem mount
> properly even after modifying the quota tools code to make the cifs vfs
> treated like XFS (the only one that seems to invoke the new quota call
> format).

There are multiple quotactl interfaces and multiple ondisk formats.
The XFS interface and ondisk format are specific to XFS (they came
originally from the IRIX implementation); nothing else needs to use
those.

> After changing the tool to recognize my filesystem name as a
> valid one (they hardcode the actual valid filesystem names in the quota
> tools on sourceforge!) it still fails to invoke my test code due to

Outrageous.

> mismatch on devnumber (network filesystems don't have real device
> numbers for each mount).   I had been hoping to experiment with the
> current stub quota routines (in preparation for adding remote quota
> support to cifs filesystem in the long run) ...

Its been awhile since I looked at that source, but IIRC for NFS
mounts the tools do not actually go into the (local) kernel via
quotactl, they make RPC calls to the remote host instead (i.e.
the tools decide what to do based on the filesystem type).

> ... that I added to the cifs
> vfs source in the cifs bitkeeper tree a few days ago, eventually these
> could call the server to get/set the quotas by specifying a valid SID
> which is also an interesting problem because that requires either an IPC
> to Winbind or upcall to a user space daemon to do mapping of local to
> domain identity (to be exact mapping the Linux UID to domain SID)

Sounds like you need to come up with a design - adding code behind
quotactl ops in cifs doesn't sound like a useful thing to do until
you know what approach you want to take (maybe look more at the way
an NFS client implements this - its all userspace).

> Is there another source of quota tools that calls the newer quota
> interface that would not require validating mount's local device numbers
> before invoking the kernel quotactl interface?"

No, I guess you'd need to add some code to do so, if going into the
kernel via quotactl is the right thing for cifs to do - from your
description above, its not clear that it is though.

cheers.

-- 
Nathan

  reply	other threads:[~2003-08-11  1:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-10 19:54 quota woes Steve French (IBM LTC)
2003-08-11  1:24 ` Nathan Scott [this message]
2003-08-12 12:23 ` Jan Kara
2003-08-12 23:05   ` Nathan Scott
2003-08-13 15:50     ` Steve French (IBM LTC)
2003-08-13 20:04       ` Stefan (metze) Metzmacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030811012421.GG9384@frodo \
    --to=nathans@sgi.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=smfltc@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.