| To: | Jan Kara <jack@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2/7] Fix test whether kernel supports quotas |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Wed, 19 May 2010 14:42:25 -0400 |
| Cc: | xfs@xxxxxxxxxxx, hch@xxxxxxxxxxxxx |
| In-reply-to: | <1274276289-8839-3-git-send-email-jack@xxxxxxx> |
| References: | <1274276289-8839-1-git-send-email-jack@xxxxxxx> <1274276289-8839-3-git-send-email-jack@xxxxxxx> |
| User-agent: | Mutt/1.5.19 (2009-01-05) |
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. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 03/12] xfs: modify buffer item reference counting, Alex Elder |
|---|---|
| Next by Date: | Re: [PATCH 04/12] xfs: Clean up XFS_BLI_* flag namespace, Alex Elder |
| Previous by Thread: | [PATCH 2/7] Fix test whether kernel supports quotas, Jan Kara |
| Next by Thread: | Re: [PATCH 2/7] Fix test whether kernel supports quotas, Jan Kara |
| Indexes: | [Date] [Thread] [Top] [All Lists] |