zfs quota question

Andrew Snow andrew at modulus.org
Tue Oct 7 12:50:01 UTC 2008

>I love ZFS, but I suddenly found out last night that I
> have lost the ability tto do a 'du' on a directory to work out if it will
> fit onto a CD or not :-)

I have created a shell script, /usr/local/bin/dirsize :

find $1 -type f -ls | awk '{j += $7} END {print j}'

Usage: dirsize <path>

More information about the freebsd-stable mailing list