Pawel Jakub Dawidek wrote:

What do you guys think about implementing 'zfs/zpool rewrite' command?
It'll read every block older than the date when the command was executed
and write it again (using standard ZFS COW mechanism, simlar to how
resilvering works, but the data is read from the same disk it is written to).

Yeah, that would be great, and in fact we are implementing such a thing right now (to support pool shrinkage, among other features). The tricky part is dealing with block pointers that appear in multiple places (eg, snapshots and clones). Having "rewrite everything" result in more space being used would not be acceptable.

--matt
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to