Summary: | 'du' may report smaller than expected size(s) when using zfs | ||
---|---|---|---|
Product: | Base System | Reporter: | ASX <as.asx64> |
Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | New --- | ||
Severity: | Affects Some People | CC: | amd64, cornelius.mund, curtis.dunham |
Priority: | --- | ||
Version: | 10.3-STABLE | ||
Hardware: | amd64 | ||
OS: | Any |
Description
ASX
2016-06-28 19:20:22 UTC
Can confirm this exact issue on 11.1-RELEASE. ZFS filesystem (not UFS) does not show the correct disk usage of a file until after (presumably, per [1]) the transaction group commits. My timings agree with the 6 second sync interval. I do not agree that this is a feature. Causes bup [2]'s t/test-sparse-files.sh testcase to fail as it checks disk usage immediately after (test-) restoring a backup. Therefore it appears the failure is benign. [1] https://forums.freebsd.org/threads/du-behavior.56763/#post-323135 [2] https://github.com/bup/bup I can confirm this behavior on ubuntu 20.04. |