The Samba-Bugzilla – Attachment 683 Details for
Bug 1843
dfree is broken on this system
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
quotas with no softlimits
quota-nosoftlimit.patch (text/plain), 1.01 KB, created by
Jason Mader (mail bounces back)
on 2004-09-28 07:53:35 UTC
(
hide
)
Description:
quotas with no softlimits
Filename:
MIME Type:
Creator:
Jason Mader (mail bounces back)
Created:
2004-09-28 07:53:35 UTC
Size:
1.01 KB
patch
obsolete
>diff -r -u reference/source/smbd/quotas.c samba-3.0.6rc2/source/smbd/quotas.c >--- reference/source/smbd/quotas.c Fri Jul 9 03:06:10 2004 >+++ samba-3.0.6rc2/source/smbd/quotas.c Mon Aug 9 15:10:32 2004 >@@ -882,8 +882,17 @@ > restore_re_uid(); > > if (r==-1) >+ { >+ DEBUG(5, ("quotactl for uid=%u: %s", euser_id, strerror(errno))); > return(False); >+ } > >+ /* No quota for this user. */ >+ if (F.d_blk_softlimit==0 && F.d_blk_hardlimit==0) >+ { >+ return(False); >+ } >+ > /* Use softlimit to determine disk space, except when it has been exceeded */ > if ( > (F.d_blk_softlimit && F.d_bcount>=F.d_blk_softlimit) || >@@ -895,14 +904,10 @@ > *dfree = 0; > *dsize = F.d_bcount; > } >- else if (F.d_blk_softlimit==0 && F.d_blk_hardlimit==0) >- { >- return(False); >- } > else > { > *dfree = (F.d_blk_softlimit - F.d_bcount); >- *dsize = F.d_blk_softlimit; >+ *dsize = F.d_blk_softlimit ? F.d_blk_softlimit : F.d_blk_hardlimit; > } > > }
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
Actions:
View
Attachments on
bug 1843
: 683