git.samba.org
/
garming
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
146ad30
)
s3:quota: don't force the block size to 512
author
Björn Jacke
<bj@sernet.de>
Thu, 6 Sep 2012 08:23:50 +0000
(10:23 +0200)
committer
Björn Jacke
<bj@sernet.de>
Thu, 6 Sep 2012 13:08:22 +0000
(15:08 +0200)
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
source3/smbd/quotas.c
patch
|
blob
|
history
diff --git
a/source3/smbd/quotas.c
b/source3/smbd/quotas.c
index 339952e8984f4a2aa830e01770e5e75358712896..3d1056d31031db912eafaed1cf1927c9afc1b3cf 100644
(file)
--- 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;