-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestUsage broken on ZFS #172
Comments
Merged
I ran these tests on few more filesystems on FreeBSD CURRENT (d8819d88af52). Expand to see setup instructions for each FS: ❌ UFS on zvolzfs create -V 16G zroot/test-ufs
newfs /dev/zvol/zroot/test-ufs
mkdir /tmp/test-ufs-zvol
mount /dev/zvol/zroot/test-ufs /tmp/test-ufs-zvol
chown kwiat:kwiat /tmp/test-ufs-zvol ❌ UFS on memory diskmdconfig -s 16g -u md0
newfs /dev/md0
mkdir /tmp/test-ufs-md
mount /dev/md0 /tmp/test-ufs-md
chown kwiat:kwiat /tmp/test-ufs-md ✅ tmpfsmkdir /tmp/tmpfs
mount -t tmpfs tmpfs /tmp/test-tmpfs
chown kwiat:kwiat /tmp/test-tmpfs ❌ ext2 on zvolzfs create -V 16G zroot/test-ext2
newfs /dev/zvol/zroot/test-ext2
mkdir /tmp/test-ext2-zvol
mount /dev/zvol/zroot/test-ext2 /tmp/test-ext2-zvol
chown kwiat:kwiat /tmp/test-ext2-zvol ❌ ext2 on memory diskmdconfig -s 16g -u md1
mkfs.ext2 /dev/md1
mkdir /tmp/test-ext2-md
mount /dev/md1 /tmp/test-ext2-md
chown kwiat:kwiat /tmp/test-ext2-md ✅ ext4 on zvolzfs create -V 16G zroot/test-ext4
newfs /dev/zvol/zroot/test-ext4
mkdir /tmp/test-ext4-zvol
mount /dev/zvol/zroot/test-ext4 /tmp/test-ext4-zvol
chown kwiat:kwiat /tmp/test-ext4-zvol ✅ ext4 on memory diskmdconfig -s 16g -u md2
mkfs.ext4 /dev/md2
mkdir /tmp/test-ext4-md
mount /dev/md2 /tmp/test-ext4-md
chown kwiat:kwiat /tmp/test-ext4-md |
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:
|
This was referenced Apr 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: