When calculating disk size and free space to show the user (e.g. when issuing "dir" at Windows command prompt), the displayed value is the lesser of global size and free space, and the quota-derived value. However, while the global values are normalized to block size of 512 bytes, the quota values are not normalized and depend on the block size of the quota system. On Linux, with file systems which don't use the XFS quota inteface (e.g. EXT4), the reported / set quota is in units of 1K, hence the comparison between quota and global values is wrong. For example, if the disk size is 300MB and the quota is 500MB, the quota is ~500,000 blocks of 1K and the disk is ~600,000 blocks of 512 bytes, making the quota seem like the limiting factor (less blocks).
Created attachment 11794 [details] git-am fix for 4.4.next
Created attachment 11795 [details] git-am fix for 4.3.next
Comment on attachment 11794 [details] git-am fix for 4.4.next LGTM.
Comment on attachment 11795 [details] git-am fix for 4.3.next LGTM.
Re-assigning to Karolin for inclusion in 4.4.0, 4.3.next.
(In reply to Jeremy Allison from comment #5) Pushed to autobuild-v4-[3|4]-test.
(In reply to Karolin Seeger from comment #6) Pushed to both branches. Closing out bug report. Thanks!