In projects_free_space_data() the real-time used space consumption
is never set. Instead, that value is returned in the field that
should hold the quota limit.
Found by inspection. Never seen/noticed because we currently don't
support quotas when a filesystem has a realtime volume.
Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
*bfree = (d.d_blk_softlimit - d.d_bcount) << 1;
}
*bused = d.d_bcount << 1;
+
if (d.d_ino_softlimit) {
*icount = d.d_ino_softlimit;
*ifree = (d.d_ino_softlimit - d.d_icount);
}
*iused = d.d_icount;
+
if (d.d_rtb_softlimit) {
*rcount = d.d_rtb_softlimit << 1;
*rfree = (d.d_rtb_softlimit - d.d_rtbcount) << 1;
}
- *rcount = d.d_rtbcount << 1;
+ *rused = d.d_rtbcount << 1;
close(fd);
return 1;