"files", "quota", "limit", "grace");
}
-static void print_quota(char *mnt, struct if_quotactl *qctl, int type)
+static void print_quota(char *mnt, struct if_quotactl *qctl, int type, int rc)
{
time_t now;
if (bover)
diff2str(dqb->dqb_btime, timebuf, now);
- sprintf(numbuf[0], (dqb->dqb_valid & QIF_SPACE) ?
- LPU64 : "["LPU64"]", toqb(dqb->dqb_curspace));
+ if (rc == -1 && errno == EREMOTEIO)
+ sprintf(numbuf[0], LPU64"*",
+ toqb(dqb->dqb_curspace));
+ else
+ sprintf(numbuf[0],
+ (dqb->dqb_valid & QIF_SPACE) ?
+ LPU64 : "["LPU64"]",
+ toqb(dqb->dqb_curspace));
if (type == QC_GENERAL)
sprintf(numbuf[1], (dqb->dqb_valid & QIF_BLIMITS)
? LPU64 : "["LPU64"]",
continue;
}
- print_quota(obd_uuid2str(&qctl->obd_uuid), qctl, qctl->qc_valid);
+ print_quota(obd_uuid2str(&qctl->obd_uuid), qctl, qctl->qc_valid, 0);
}
out:
if (qctl.qc_valid != QC_GENERAL)
mnt = "";
- print_quota(mnt, &qctl, QC_GENERAL);
+ print_quota(mnt, &qctl, QC_GENERAL, rc1);
if (qctl.qc_valid == QC_GENERAL && qctl.qc_cmd != LUSTRE_Q_GETINFO && verbose) {
rc2 = print_obd_quota(mnt, &qctl, 1);