Open samuelkarp opened 3 years ago
I ran these tests on few more filesystems on FreeBSD CURRENT (d8819d88af52). Expand to see setup instructions for each FS:
In the two years since I opened this (and that I apparently forgot it was open), the results I'm getting (now on FreeBSD 13.1-RELEASE) are slightly different:
--- FAIL: TestUsage (0.00s)
--- PASS: TestUsage/SingleSmallFile (0.00s)
--- FAIL: TestUsage/HardlinkSparefile (0.00s)
--- FAIL: TestUsage/Hardlinks (0.01s)
--- FAIL: TestUsage/SparseFiles (0.01s)
--- FAIL: TestUsage/BiggerFiles (0.01s)
--- PASS: TestUsage/MultipleSmallFile (0.00s)
When I run
TestUsage
in thefs
package with a temp dir on a ZFS mount, it fails like this:If I add a sleep before
DiskUsage
is called, I get slightly different but still-failing results:It looks like the
DiskUsage
function is working correctly, but the expected size calculation doesn't hold for how ZFS manages its blocks. This occurs both with OpenZFS on Ubuntu 16.04 and on FreeBSD 12.