diff options
author | Björn Jacke <bj@sernet.de> | 2012-09-18 13:57:30 +0200 |
---|---|---|
committer | Bjoern Jacke <bj@sernet.de> | 2012-09-18 14:30:25 +0200 |
commit | 0b57d1c07520f4995412f224945324fef29f5989 (patch) | |
tree | 880d9e6298cee6300b625b3ac77e53cc0222944e | |
parent | 6fb91dd36950151aeec69c074f4d900a6e7adba1 (diff) | |
download | samba-0b57d1c07520f4995412f224945324fef29f5989.tar.gz samba-0b57d1c07520f4995412f224945324fef29f5989.tar.bz2 samba-0b57d1c07520f4995412f224945324fef29f5989.zip |
quota: add supprt for gfs2
gfs2 uses the same generic quota interface as xfs and it has the same base
block/quota block size ratio and seems to work nice with the xfs quota module.
(People using gfs should be aware that quota reporting is lagging quite a bit
on gfs. If you copy a file on a gfs volume the quota values are being updated
with a delay of 30s here with kernel 3.5. This reporting can lead to data
corruption if a client thinks he can write but actually he suddently can't.)
-rw-r--r-- | source3/lib/sysquotas.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c index 97dd49de96..2ef1d1bf8f 100644 --- a/source3/lib/sysquotas.c +++ b/source3/lib/sysquotas.c @@ -174,6 +174,8 @@ static struct { } sys_quota_backends[] = { #if defined HAVE_XFS_QUOTAS {"xfs", sys_get_xfs_quota, sys_set_xfs_quota}, + {"gfs", sys_get_xfs_quota, sys_set_xfs_quota}, + {"gfs2", sys_get_xfs_quota, sys_set_xfs_quota}, #endif /* HAVE_XFS_QUOTAS */ #ifdef HAVE_NFS_QUOTAS {"nfs", sys_get_nfs_quota, sys_set_nfs_quota}, |