On Thu, Jul 10, 2008 at 5:42 AM, Darren J Moffat <[EMAIL PROTECTED]> wrote:
> Thoughts ?  Is this useful for anyone else ?  My above examples are some
> of the shorter dataset names I use, ones in my home directory can be
> even deeper.

Quite usable and should be done.

The key problem I see is how to deal with ambiguity.

# zpool create pool
# zfs create pool/home
# zfs set mountpoint=/home  pool/home
# zfs create pool/home/adams  (for Dilbert's master)
...
# zfs create pool/home/gerdts  (for Me)
...
# zfs create pool/home/pool   (for Ms. Pool)
...
# cd /home
# zfs snapshot [EMAIL PROTECTED]

What just got snapshotted?

My vote would be that it would try the traditional match first, then
try to do it by resolving the path.  That is, if it would have failed
in the past, it should see if the specified path is the root
(mountpoint?) of a data set.  That way things like the following
should work unambigously:

# zfs snapshot ./[EMAIL PROTECTED]
# zfs snapshot `pwd`/[EMAIL PROTECTED]

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to