[PATCH 2/7] Fix test whether kernel supports quotas

Christoph Hellwig hch at infradead.org
Wed May 19 13:42:25 CDT 2010


On Wed, May 19, 2010 at 03:38:04PM +0200, Jan Kara wrote:
> For all 2.6 kernels presence of quota support in kernel can be detected by
> checking /proc/sys/fs/quota. This is actually more reliable than trying to
> mount a filesystem with quota options (for example because SCRATCH_DEV does
> not have to contain a filesystem type we are going to test).

It's not actually correct.  /proc/sys/fs/quota only gets registered by
fs/quota/dquot.c, which means it's not avaiable in a kernel that only
has XFS quotas.




More information about the xfs mailing list