From: Uri Simchoni Date: Sat, 21 May 2016 19:25:32 +0000 (+0300) Subject: s3-quotas: fix sysquotas_4B quota fetching for BSD X-Git-Tag: tdb-1.3.10~1078 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59133295bbfd3b51953d9c86e3b533ff1d4861e3;p=thirdparty%2Fsamba.git s3-quotas: fix sysquotas_4B quota fetching for BSD Correctly copy block hard/soft limits from the OS-specific structure to samba structure. BUG:https://bugzilla.samba.org/show_bug.cgi?id=11931 Signed-off-by: Uri Simchoni Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/sysquotas_4B.c b/source3/lib/sysquotas_4B.c index e3adc35015e..ee56432211e 100644 --- a/source3/lib/sysquotas_4B.c +++ b/source3/lib/sysquotas_4B.c @@ -81,6 +81,12 @@ static void xlate_qblk_to_smb(const struct dqblk * const qblk, dp->hardlimit = XLATE_TO_BLOCKS(qblk->dqb_bhardlimit); dp->curblocks = XLATE_TO_BLOCKS(qblk->dqb_curbytes); #undef XLATE_TO_BLOCKS +#else + dp->bsize = DEV_BSIZE; + + dp->softlimit = qblk->dqb_bsoftlimit; + dp->hardlimit = qblk->dqb_bhardlimit; + dp->curblocks = qblk->dqb_curblocks; #endif dp->ihardlimit = qblk->dqb_ihardlimit;