Quota-Backend-Cleanup/Logging remove tmpfs and create quota if not exist Part two
All checks were successful
Source release / source-package (push) Successful in 43s
All checks were successful
Source release / source-package (push) Successful in 43s
This commit is contained in:
@@ -1052,8 +1052,17 @@ int nw_get_vol_restrictions(uint8 volnr, int uid, uint32 *quota, uint32 *inuse)
|
||||
res=su_quotactl(QCMD(Q_GETQUOTA, USRQUOTA), device, uid, (caddr_t) &dqblk);
|
||||
|
||||
if (res != 0) {
|
||||
int err = errno;
|
||||
if (err == ESRCH) {
|
||||
XDPRINTF((2,0,
|
||||
"No quota record device=%s uid=%d, treating as unlimited",
|
||||
device, uid));
|
||||
*quota = 0x40000000;
|
||||
*inuse = 0;
|
||||
return(0);
|
||||
}
|
||||
XDPRINTF((2,0, "Get quota failed device=%s uid=%d errno=%d",
|
||||
device, uid, errno));
|
||||
device, uid, err));
|
||||
return(0); /* Quotas are probably not enabled */
|
||||
}
|
||||
if (dqblk.dqb_bhardlimit == 0) {
|
||||
|
||||
Reference in New Issue
Block a user