Fix test whether kernel supports quotas
authorJan Kara <jack@suse.cz>
Wed, 19 May 2010 09:25:52 +0000 (11:25 +0200)
committerJan Kara <jack@suse.cz>
Thu, 20 May 2010 17:06:15 +0000 (19:06 +0200)
commitc9ff0c04476af68c93a120bb6f16c2a0182788ea
treea45b636d64c5b7f256b77ab9ba8bb46494755a3f
parentf73e0fb3f2c59c4b08542b71fcf6aa38e41987d1
Fix test whether kernel supports quotas

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).

Signed-off-by: Jan Kara <jack@suse.cz>
common.quota