On Sun, Aug 9, 2009 at 6:50 AM, Menno Lageman<menno.lage...@sun.com> wrote:
> Having to type the full dataset names as arguments to zfs(1M), e.g.
>
> $ zfs snapshot rpool/export/home/ml93401/onnv-cl...@onnv_121
> $ zfs clone rpool/export/home/ml93401/onnv-cl...@onnv_121 \
>    rpool/export/home/ml93401/ws/somebugfix
> $ cd ws/somewbugfix
>
> [do some work]
>
> $ zfs snapshot rpool/export/home/ml93401/ws/somebug...@9aug
>
> gets boring quickly and got me thinking that it would be nice if one could
> use pathnames in zfs(1M) arguments in addition to dataset names ('zfs list'
> already supports pathnames as arguments).
>
> Some hacking lead to the luxury of being able to this instead:
>
> $ zfs snapshot ./onnv-cl...@onnv_121
> $ zfs clone ./onnv-cl...@onnv_121 ./ws/somebugfix
> $ cd ws/somewbugfix
>
> [do some work]
>
> $ zfs snapshot ./@9aug
>
> Is there any particular reason why this is not yet possible (other than
> 'nobody has done the work' obviously)? CR 628833 (RFE: allow filesystem
> mountpoints for zfs commands) seems to be the closest to this, but has been
> closed as a dup of 6260523 (want 'zfs list <path>') without any information
> as to why.

This was previously discussed...

http://mail.opensolaris.org/pipermail/zfs-discuss/2008-July/019762.html

I think that the idea was generally well accepted.  All that is
missing is the ARC case and the code.

For the use case of creating snapshots, there is also this:

# mkdir .zfs/snapshot/foo
# zfs list | grep foo
rpool/ROOT/s10u7_...@foo                 0      -  9.76G  -
# rmdir .zfs/snapshot/foo
# zfs list | grep foo
<no output>

I don't know of a similar shortcut for the create or clone subcommands.

-- 
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