Details
Description
struct statvfs contains a not exactly intuitive quirk: the f_blocks, f_bfree and f_bavail members refer to the number of fundamental blocks ("fragments"), whose size is given in f_frsize and not, as one might guess, in f_bsize. To make matters worse, f_bsize is often equal to f_frsize, except when it isn't (e.g. on a tmpfs).
Qt gets it wrong.
Attachments
For Gerrit Dashboard: QTBUG-45137 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
110205,5 | Correct calculation of filesystem data on unusual filesystems | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |