Extended attributes Linux interface

2011-10-20 Thread Matthew Mondor
Hello, There were previously discussions, started by Emmanuel, concerning the extended attributes, including on the various available APIs and which to support etc. At the time I read them I was catching up with a lot of mail and had written down a small note about a potential security implicatio

Re: fs-independent quotas

2011-10-20 Thread Daniel Hagerty
Ignatios Souvatzis writes: > On Wed, Oct 19, 2011 at 06:09:27PM +, David Holland wrote: > > support to other filesystems (tempfs, perhaps v7fs) or even add other > > filesystems that have or may have their own native quota handling > > (zfs, Hammer, you name it). > > zfs - does it really ha

Re: fs-independent quotas

2011-10-20 Thread Thor Lancelot Simon
On Thu, Oct 20, 2011 at 06:54:54PM +0200, Manuel Bouyer wrote: > On Thu, Oct 20, 2011 at 04:39:21PM +, David Holland wrote: > > > We're talking a few MB of ram here, isn't it ? the kernel can certainly > > > allocate this without troubles (other subsystems do). > > > > The proplib'd and XMLi

Re: fs-independent quotas

2011-10-20 Thread Manuel Bouyer
On Thu, Oct 20, 2011 at 09:41:25PM +0200, Manuel Bouyer wrote: > > > > I don't see that you can do anything with an unmounted filesystem in > > repquota. Unless the quota files for the filesystem are on a different > > (and mounted) volume, it won't be able to read them, and it doesn't > > have an

Re: fs-independent quotas

2011-10-20 Thread Manuel Bouyer
On Thu, Oct 20, 2011 at 05:35:16PM +, David Holland wrote: > > I can't parse this, can you explain ? The tools needs to be aware of the > > format to do something usefull with the data, isn't it ? > > The tools can and should work with a filesystem-independent abstract > schema. This should

Re: fs-independent quotas

2011-10-20 Thread David Holland
On Thu, Oct 20, 2011 at 07:59:08PM +0200, Ignatios Souvatzis wrote: > > > How would this fit in, if at all? > > > > That's a good question. My first instinct is that like the other stuff > > zfs does that it does in its own semantically-incompatible way, it > > would require its own tools. B

Re: fs-independent quotas

2011-10-20 Thread Ignatios Souvatzis
On Thu, Oct 20, 2011 at 03:16:09PM +, David Holland wrote: > On Thu, Oct 20, 2011 at 11:57:04AM +0200, Ignatios Souvatzis wrote: > > > support to other filesystems (tempfs, perhaps v7fs) or even add other > > > filesystems that have or may have their own native quota handling > > > (zfs, Ham

Re: fs-independent quotas

2011-10-20 Thread David Holland
On Thu, Oct 20, 2011 at 12:56:17PM +0200, Manuel Bouyer wrote: > > > > So, a few months back we got a new improved quota format for FFS. > > > > Unfortunately, one of the side effects of this was to sprinkle > > > > specific knowledge of the new format through all the userlevel quota > > > > to

Re: fs-independent quotas

2011-10-20 Thread Manuel Bouyer
On Thu, Oct 20, 2011 at 04:39:21PM +, David Holland wrote: > > We're talking a few MB of ram here, isn't it ? the kernel can certainly > > allocate this without troubles (other subsystems do). > > The proplib'd and XMLified complete dump for 50,000 users will > probably make a blob of betwee

Re: fs-independent quotas

2011-10-20 Thread David Holland
On Thu, Oct 20, 2011 at 06:00:28PM +0200, Manuel Bouyer wrote: > > > It's certainly less trouble to send back to userland the whole set of > > > data - especially if what userland wants is the whole set of data > > > (I can't see what a partial read of quota would be usefull for). > > > >

Re: fs-independent quotas

2011-10-20 Thread Manuel Bouyer
On Thu, Oct 20, 2011 at 03:47:26PM +, David Holland wrote: > On Thu, Oct 20, 2011 at 05:23:14PM +0200, Manuel Bouyer wrote: > > > That's way more complicated than necessary. Think of it as like > > > VOP_READDIR - you get passed a position, you send back some number of > > > items, and updat

Re: fs-independent quotas

2011-10-20 Thread David Holland
On Thu, Oct 20, 2011 at 05:23:14PM +0200, Manuel Bouyer wrote: > > That's way more complicated than necessary. Think of it as like > > VOP_READDIR - you get passed a position, you send back some number of > > items, and update the position. > > Depending on how the data are stored on disk, th

Re: fs-independent quotas

2011-10-20 Thread Manuel Bouyer
On Thu, Oct 20, 2011 at 03:08:16PM +, David Holland wrote: > That's way more complicated than necessary. Think of it as like > VOP_READDIR - you get passed a position, you send back some number of > items, and update the position. Depending on how the data are stored on disk, the notion of pos

Re: fs-independent quotas

2011-10-20 Thread David Holland
On Thu, Oct 20, 2011 at 11:57:04AM +0200, Ignatios Souvatzis wrote: > > support to other filesystems (tempfs, perhaps v7fs) or even add other > > filesystems that have or may have their own native quota handling > > (zfs, Hammer, you name it). > > zfs - does it really have quota? I don't k

Re: fs-independent quotas

2011-10-20 Thread David Holland
On Thu, Oct 20, 2011 at 06:43:47AM +0200, Emmanuel Dreyfus wrote: > > It seems to me that quotas are fundamentally a special-purpose > > key/value store; that is, you look up quota information for a > > particular thing (the key) and get back the quota settings and current > > usage information

Re: fs-independent quotas

2011-10-20 Thread David Holland
On Thu, Oct 20, 2011 at 04:53:53PM +0200, Manuel Bouyer wrote: > > You don't need to track state in the kernel, you just need to keep a > > generation ID. Have the caller pass a "starting index" and > > "requested count" parameter, and have the kernel include "number of > > matches", "total mat

Re: fs-independent quotas

2011-10-20 Thread Manuel Bouyer
On Thu, Oct 20, 2011 at 10:48:16AM -0400, Jared McNeill wrote: > Heyas Manuel -- > > You don't need to track state in the kernel, you just need to keep a > generation ID. Have the caller pass a "starting index" and > "requested count" parameter, and have the kernel include "number of > matches", "

proposed additions to sys/conf/std

2011-10-20 Thread Jonathan A. Kollasch
I propose adding pseudo-device drvctl and/or options BUFQ_PRIOCSCAN to src/sys/conf/std. The reasons I even bring this up: - Many kernels are missing drvctl and thus do not support disk wedges (this is arguably due to a flaw in the design of disk wedges, but that's a another bikeshed).

Re: fs-independent quotas

2011-10-20 Thread Jared McNeill
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 20 Oct 2011, Manuel Bouyer wrote: also it doesn't support cursors. This can easily be implemented in userland, without changes to the quotactl(2) interface. I've trouble seeing how this can be sanely implemented at the quotactl(2) level (I

Re: fs-independent quotas

2011-10-20 Thread Manuel Bouyer
On Wed, Oct 19, 2011 at 10:20:23PM +, David Holland wrote: > On Wed, Oct 19, 2011 at 09:22:02PM +0200, Manuel Bouyer wrote: > > > So, a few months back we got a new improved quota format for FFS. > > > Unfortunately, one of the side effects of this was to sprinkle > > > specific knowledge of

Re: fs-independent quotas

2011-10-20 Thread Ignatios Souvatzis
On Wed, Oct 19, 2011 at 06:09:27PM +, David Holland wrote: > support to other filesystems (tempfs, perhaps v7fs) or even add other > filesystems that have or may have their own native quota handling > (zfs, Hammer, you name it). zfs - does it really have quota? All the demos I've seen talk

Re: dtrace ioctls

2011-10-20 Thread David Laight
On Wed, Oct 19, 2011 at 10:22:08PM +, David Holland wrote: > On Wed, Oct 19, 2011 at 10:01:33PM +0100, David Laight wrote: > > > > Hmmm... the sun code is passing the structure by value > > Is it? The non-sun code appears to be calling an ioctl that's defined > to take a pointer to a point