roland wrote:
is there a reliable method of re-compressing a whole zfs volume after turning on compression or changing compression scheme ?
It would be slow, and the file system would need to be idle to avoid race conditions, and it wouldn't be very fast, but you _could_ do the following (POSIX shell syntax). I haven't tested this, so it could have typos or other problems: find . -type f -print | while read n; do TF="$(mktemp ${n%/*}/.tmpXXXXXX)" if cp -p "$n" "$TF"; then if ! mv "$TF" "$n"; then echo "failed to re-write $n in mv" rm "$TF" fi else echo "failed to re-write $n in cp" rm "$TF" fi done -- Carson _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss