fabioz23 / maczfs

Automatically exported from code.google.com/p/maczfs
Other
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 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