On Mon, Jan 12, 2009 at 12:14:09PM -0500, David Briand wrote: > Is there a simple way to convert subdirectories in a ZFS pool into data > sets?
An inefficient and complicated, but fast way is to snapshot and clone the dataset containing the directory in question, then remove everything from the clone except the directory in question, move its contents to the root of the clone dataset, remove the old directory, then mount the clone over the desired directory in the original dataset. This is inefficient because it cause references from the snapshot to all the contents that you've removed, which means the space won't be freed. Or you can create a new dataset, move the files over, and rename/mount the new dataset into place. It'd be awesome to have a native directory->dataset conversion feature in ZFS. And, relatedly, fast moves of files across datasets in the same volume. These two RFEs have been discussed to death in the list; see the archives. Nico -- _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss