From 28da07231936dc8565a2ce2040ebad7b5e8da2e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 7 Feb 2019 04:23:13 +0100 Subject: [PATCH] sysquotas_xfs: fix inode limit setting, which is not depeding on blocksize Signed-off-by: Bjoern Jacke Reviewed-by: Uri Simchoni --- source3/lib/sysquotas_xfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source3/lib/sysquotas_xfs.c b/source3/lib/sysquotas_xfs.c index 8db52bd8459..6b184874435 100644 --- a/source3/lib/sysquotas_xfs.c +++ b/source3/lib/sysquotas_xfs.c @@ -188,14 +188,12 @@ int sys_set_xfs_quota(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qt if (bsize == dp->bsize) { D.d_blk_softlimit = dp->softlimit; D.d_blk_hardlimit = dp->hardlimit; - D.d_ino_hardlimit = dp->ihardlimit; - D.d_ino_softlimit = dp->isoftlimit; } else { D.d_blk_softlimit = (dp->softlimit*dp->bsize)/bsize; D.d_blk_hardlimit = (dp->hardlimit*dp->bsize)/bsize; - D.d_ino_hardlimit = (dp->ihardlimit*dp->bsize)/bsize; - D.d_ino_softlimit = (dp->isoftlimit*dp->bsize)/bsize; } + D.d_ino_hardlimit = dp->ihardlimit; + D.d_ino_softlimit = dp->isoftlimit; qflags = dp->qflags; -- 2.34.1