BjoKaSH / maczfs-archive

Legacy MacZFS - Archived here due Google-code shutdown. Automatically exported from code.google.com/p/maczfs -- Do Not Use! Use https://openzfsonosx.org/
Other
1 stars 0 forks source link

Compressed zfs volume do not show correct results in "du". #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  zfs set compression=yes tank
2.  dd if=/dev/zero of=/Volumes/tank/100GB-file bs=1m count=102400
3.  du -s -h /Volumes/tank/100GB-file

What is the expected output? What do you see instead?
Should see
100G  /Volumes/tank/100GB-file

but instead, I see
512B   /Volumes/tank/100GB-file

What version of the product are you using? On what operating system?
    MacZFS-74.1.0 on Lion

Please provide any additional information below.
also crashes Lion when the zfs volume is filled up.

Original issue reported on code.google.com by goodb...@gmail.com on 2 Sep 2011 at 12:03

GoogleCodeExporter commented 9 years ago
so does du show file size (what it's supposed to be) or how much space it 
actually takes on the drive (ie, compressed down to 512 bytes) ?

Original comment by goodb...@gmail.com on 3 Sep 2011 at 12:42

GoogleCodeExporter commented 9 years ago
This is by design, see 
http://hub.opensolaris.org/bin/view/Community+Group+zfs/faq#HWhydoesdu28129repor
tdifferentfilesizesforZFSandUFS3FWhydoesn27tthespaceconsumptionthatisreportedbyt
hedfcommandandthezfslistcommandmatch3F

Original comment by erebus...@gmail.com on 2 Feb 2012 at 5:12

GoogleCodeExporter commented 9 years ago

Original comment by googlelogin@bjoern-kahl.de on 28 Jul 2015 at 9:58