Ross Becker wrote: > I'm about to enable compression on my ZFS filesystem, as most of the data I > intend to store should be highly compressible. > > Before I do so, I'd like to ask a couple of newbie questions.... > > First - if you were running a ZFS without compression, wrote some files to > it, then turned compression on, will those original uncompressed files ever > get compressed via some background work, or will they need to be copied in > order to compress them? > > Changed filesystem compress properties only apply to new writes.
> Second- clearly the "du" command shows post-compression size; opensolaris > doesn't have a man page for it, but I'm wondering if there's either an option > to show "original" size for du, or if there's a suitable replacement I can > use which will show me the uncompressed size of a directory full of files? > (no, knowing the compression ratio of the whole filesystem and the du size > isn't suitable; I'm looking for a straight-up du substitute which would tell > me original sizes") > > I guess the obvious question is why? ls shows the file size. -- Ian. _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss