On Tue, January 5, 2010 10:12, casper....@sun.com wrote: >>How about creating a new data set, moving the directory into it, and then >>destroying it? >> >>Assuming the directory in question is /opt/MYapp/data: >> 1. zfs create rpool/junk >> 2. mv /opt/MYapp/data /rpool/junk/ >> 3. zfs destroy rpool/junk > > The "move" will create and remove the files; the "remove" by mv will be as > inefficient removing them one by one. > > "rm -rf" would be at least as quick.
Normally when you do a move with-in a 'regular' file system all that's usually done is the directory pointer is shuffled around. This is not the case with ZFS data sets, even though they're on the same pool? _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss