[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quota patches
On Fri, Mar 08, 2002 at 10:51:48AM +0100, GCS wrote:
> Hi!
>
> The newest XFS has a new quota related patch for 32 bit uid/gids. Is it
> available as a separate patch?
>
> Thanks, GCS
>
hello,
You can find these patches on Jan Kara's ftp site, as described in
the message Jan sent to LKML below. The patches listed below are
not yet in CVS... (small differences)... I'll be merging the latest
changes in later today, and then CVS will contain exactly these
patches.
cheers.
--
Nathan
On Mon, Mar 11, 2002 at 04:50:08PM +0100, Jan Kara wrote:
> Hi,
>
> So I've created first "publishable" version of quota patches supporting
> both quota formats in kernel (so in future the patches can be backported
> in 2.4 and included...). Now quota formats are plugins - the idea is similar
> to the way how filesystem plugins work.
> The changes are split into 13 parts (should I create one empty patch? ;-)):
> quota-1-newlocks - this patch changes counting of references on dquot structures
> so filesystem can be sure we never call it during DQUOT_ALLOC/DQUOT_FREE/..
> calls.
> quota-2-formats - this patch removes most format dependent code from dquot.c
> and quota.h and puts calls of callback functions instead
> quota-3-register - this patch implements registering/unregistering of quota
> formats
> quota-4-getstats - this patch removes Q_GETSTATS call and creates /proc/fs/quota
> entry instead
> quota-5-bytes - implements accounting of used space in bytes on quota side
> quota-6-bytes - implements accounting of used space in bytes on VFS side -
> - neccessary functions are added to fs.h
> quota-7-quotactl - implementation of generic quotactl interface (probably the
> biggest patch). Interface is moved from dquot.c to quota.c file. Pointers
> to quota operations in superblock are now not filled on quota_on() but
> on mount so filesystem can override them (for example ext3 would like to
> check on quota_on() that quotafile lies on proper device and turn on
> data-journaling on it - at least when we'll have journaled quota :)).
> quota-8-format1 - implementation of old quota format (mainly moved stuff from
> dquot.c + some interface functions)
> quota-9-format2 - implementation of new quota format (mainly just copied from
> patches used in -ac kernels)
> quota-10-inttype - replace silly usage of 'short' by 'int'
> quota-11-sync - implements correct syncing of quota - also quota info stored
> in superblock is stored (here 2.4.18 and 2.5.6 patches significantly differ
> - in 2.5.6 it's a bit simplier to do it)
> quota-12-compat - implements backward compatible quotactl() interface. It's
> configurable whether it should be used at all and whether is should behave
> as interface in Linus's (the oldest interface) or Alan's (old interface for
> new quota format) kernel.
> quota-13-ioctl - implements ioctl for getting file size in bytes. I placed
> this patch as the last one because I consider it ugly to create ioctl() for
> such thing (changing stat() would be cleaner but this change isn't probably
> important enough for it to be worth yet another stat() change). So if it
> is decided the patch won't be included there won't be problems...
>
> The patches seem to work reasonably for me so I think it's time for
> wider testing... I haven't tested the patches for archs != i386
> so if someone has sparc, ia32 or s390 at hand can you please give patches a try?
> The patches for 2.4.18 and 2.5.6 are at:
> ftp://atrey.karlin.mff.cuni.cz/pub/local/jack/quota/
> v2.4/alpha/
> v2.5/alpha/
>
> There are also quota utilities capable of communicating with new generic
> interface (otherwise you can use old utils and compile compatible quotactl()
> interface). You can download them at:
>
> ftp://atrey.karlin.mff.cuni.cz/pub/local/jack/quota/utils/alpha/quota-3.05-pre1.tar.gz
>
> Any comments & bugreports welcome.
>
> Honza
>
> --
> Jan Kara <jack@suse.cz>
> SuSE CR Labs