ZFS works as intended, here. Zero-filled blocks are not counted into the compression ratio, as they get dismissed early in the compression pipeline and never hit the disks as used data:
# zfs create sbblht/test # dd if=/dev/zero of=/test/a bs=16M count=8 8+0 records in 8+0 records out 134217728 bytes (134 MB, 128 MiB) copied, 0.0718708 s, 1.9 GB/s root@sbooblehat:~# du -shx /test/ 1.0K /test/ root@sbooblehat:~# du -shx --apparent-size /test/ 129M /test/ # zfs list -o used,logicalused,ratio sbblht/test USED LUSED RATIO 19K 9.50K 1.00x -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1639963 Title: zfs get compressratio returns bogus results To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1639963/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs