The Samba-Bugzilla – Attachment 7862 Details for
Bug 3272
in nfs quotas, bsize is always set to 512
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for master to fix this
0001-s3-quota-don-t-force-the-block-size-to-512.patch (text/plain), 899 bytes, created by
Björn Jacke
on 2012-09-06 08:34:53 UTC
(
hide
)
Description:
patch for master to fix this
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2012-09-06 08:34:53 UTC
Size:
899 bytes
patch
obsolete
>From 3c1c8379e6ee46d8739edf1fc23e6c061825ebc8 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= <bj@sernet.de> >Date: Thu, 6 Sep 2012 10:23:50 +0200 >Subject: [PATCH] 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 >--- > source3/smbd/quotas.c | 3 --- > 1 file changed, 3 deletions(-) > >diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c >index 339952e..3d1056d 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; >-- >1.7.11.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
obnox
:
review+
Actions:
View
Attachments on
bug 3272
: 7862