[PATCH] honor group quota if user quota also exists

Björn JACKE bjacke at samba.org
Tue Feb 12 21:26:21 UTC 2019


On 2019-02-02 at 01:01 +0100 Björn JACKE via samba-technical sent off:
> > >  	*bsize = D.bsize;
> > > @@ -468,13 +469,16 @@ try_group_quota:
> > >  		*dfree = 0;
> > >  		*dsize = D.curblocks;
> > >  	} else if (D.softlimit==0 && D.hardlimit==0) {
> > > -		return False;
> > > +		return ret_user_quota;
> > >  	} else {
> > >  		if (D.softlimit == 0) {
> > >  			D.softlimit = D.hardlimit;
> > >  		}
> > > -		*dfree = D.softlimit - D.curblocks;
> > > -		*dsize = D.softlimit;
> > > +		/* let's see if user quota or group quota is more limiting: */
> > > +		if (*dfree > D.softlimit) {
> > 
> > That should be *dsize right?

right. The corrected patch will be part of the quota patchset I'll post in a minute.

Björn



More information about the samba-technical mailing list