]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/zfs/zfs_main.c
Illumos #510: 'zfs get' enhancement - mountpoint as an argument
authorShampavman <sham.pavman@nexenta.com>
Tue, 26 Jul 2011 18:53:09 +0000 (11:53 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 1 Aug 2011 19:09:11 +0000 (12:09 -0700)
commitbb939d10859e4f56bc793c4d5077e680a8c6c3aa
treedeb16b6caa73aa5937ea164a58f33495199902d4
parent2cc6c8db12eaf8d1a1c17a13fbc6d25d8244486e
Illumos #510: 'zfs get' enhancement - mountpoint as an argument

The 'zfs get' command should be able to deal with mountpoint
as an argument.  It already works with 'zfs list' command:

  # zfs list /export/home/estibi
  NAME                       USED  AVAIL  REFER  MOUNTPOINT
  rpool/export/home/estibi  1.14G  3.86G  1.14G  /export/home/estibi

but it fails with 'zfs get':

  # zfs get all /export/home/estibi
  cannot open '/export/home/estibi': invalid dataset name

Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Reviewed by: Deano <deano@rattie.demon.co.uk>
Reviewed by: Garrett D'Amore <garrett@nexenta.com>
Approved by: Garrett D'Amore <garrett@nexenta.com>

References to Illumos issue and patch:
- https://www.illumos.org/issues/510
- https://github.com/illumos/illumos-gate/commit/5ead3ed965

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #340
cmd/zfs/zfs_main.c