I'm using zfs on my FreeBSD 9.0 x64 and pretty happy with it, but I find it hard to count directory real, not compressed, size.
Surely I can walk over the directory and count every file size with ls, but I'd expect some extra key for du for that purpose.
So, how can I tell the directory size for dir placed on zfs with compression on?
Thamk you in advance for the advice, I simple can't rememeber there is no such a 'simple' way, without 'find ./ -type d -exec ls -l '{}' \; | awk ...'!
Use the
du
with its-A
flag:Very handy. It even works with
-d
for recursive goodness:You could install the GNU version of
du(1)
:cd /usr/ports/sysutils/coreutils && make install clean
Then you can use the
--apparent-size
flag:try to use zpool command :
but df -sh shows resulting (not deduplicated size)