On Thu, Jun 12, 2008 at 04:24:54PM -0700, Jeff Bonwick wrote: > I saw this putback fly by and was curious why ZFS wasn't touched,
My original basis for this was that the interesting use case was already supported in ZFS style: zpool import -d /net/zday/some/path/to/zpool/images/ > However, I see no reason we couldn't make this work. If you specify > a file or device to zfs_mount(), as indicated by a leading slash in > the "special" field, we could attempt to import to an alternate root > at the specified mountpoint. Upon last unmount (there may be multiple > filesystems in the pool), we would automatically export the pool. This sounds like it's covering three things: - the ability to import a pool given a fully-specified path, not just a directory - the ability to import a pool to a different mount directory - temporary pools All of these features seem like useful ones to me. However, I can't help but feel that it's much more natural to support this in zpool: zpool import [-t] [pool path] [top-level mount point] Where -t means that the last unmount also exports the pool. Perhaps we could make mount(1m) do this as well, though I doubt this would actually use the lofi interface itself? regards john
