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

This commit is contained in:
Mario Fetka
2026-05-26 00:13:27 +02:00
parent ff6c3e9bed
commit b6d5266e2d

View File

@@ -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) {