]> granicus.if.org Git - zfs/commit
Allow bookmark short name in 'zfs bookmark'
authorLOLi <loli10K@users.noreply.github.com>
Thu, 20 Apr 2017 19:09:40 +0000 (21:09 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 Apr 2017 19:09:40 +0000 (12:09 -0700)
commit587e228a6fcc03aa1135fda368666841dcb0e4c8
tree1cc987fa06fc4669498c7e4e028dd0366d508023
parent3e67c38c3457989fc212bea8361adf9f38a51452
Allow bookmark short name in 'zfs bookmark'

This lets users create a bookmark from the command line by its name
only, without the need to specify the dataset path which is extacted
from the snapshot parameter.

These commands are now equivalent:

   zfs bookmark poolname/fs@snap poolname/fs#bookmark
   zfs bookmark @snap poolname/fs#bookmark
   zfs bookmark poolname/fs@snap \#bookmark

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #3665
Closes #6027
cmd/zfs/zfs_main.c