Matthew Ahrens <matthew.ahr...@sun.com> wrote: > Gaëtan Lehmann wrote: > > > > Hi, > > > > On opensolaris, I use du with the -b option to get the uncompressed size > > of a directory): > > > > r...@opensolaris:~# du -sh /usr/local/ > > 399M /usr/local/ > > r...@opensolaris:~# du -sbh /usr/local/ > > 915M /usr/local/ > > r...@opensolaris:~# zfs list -o space,refer,ratio,compress data/local > > NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD > > REFER RATIO COMPRESS > > data/local 228G 643M 249M 394M 0 0 > > 394M 2.51x on > > r...@opensolaris:~# which du > > /usr/gnu/bin/du > > > > but on Solaris 10, there is no such option. > > > > So what is the best way to get the uncompressed size of a directory on > > Solaris 10? > > Install GNU du on solaris 10? Although the answer will be just as > (in)accurate as GNU du on solaris 10. Note that it reports the compression
How about: find . -type f -ls | awk '{ sum += $7} END {print sum}' Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de (uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss