diff options
author | Björn Jacke <bj@sernet.de> | 2012-09-06 10:23:50 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2012-09-06 15:08:22 +0200 |
commit | d6cc08b9eeb9de17bc0e610d6cf6dba13c5c8222 (patch) | |
tree | b6d8a2e80d6385150e730478fdbc0f1d94128942 /source3/smbd | |
parent | 146ad30387ebfeaa0269a26b1c5ee32ed13e095e (diff) | |
download | samba-d6cc08b9eeb9de17bc0e610d6cf6dba13c5c8222.tar.gz samba-d6cc08b9eeb9de17bc0e610d6cf6dba13c5c8222.tar.bz2 samba-d6cc08b9eeb9de17bc0e610d6cf6dba13c5c8222.zip |
s3:quota: don't force the block size to 512
there is no point in forcing the block size to 512 when curblocks is 1. This
will only lead to false quota reporting. See bug #3272
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/quotas.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c index 339952e898..3d1056d310 100644 --- a/source3/smbd/quotas.c +++ b/source3/smbd/quotas.c @@ -203,9 +203,6 @@ static bool nfs_quotas(char *nfspath, uid_t euser_id, uint64_t *bsize, uint64_t *bsize = gqr.getquota_rslt_u.gqr_rquota.rq_bsize; *dsize = D.dqb_bsoftlimit; - if (D.dqb_curblocks == 1) - *bsize = 512; - if (D.dqb_curblocks > D.dqb_bsoftlimit) { *dfree = 0; *dsize = D.dqb_curblocks; |