]> granicus.if.org Git - zfs/commit
Fix 'zfs list -t snapshot' depth
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 Apr 2019 16:14:45 +0000 (09:14 -0700)
committerGitHub <noreply@github.com>
Mon, 8 Apr 2019 16:14:45 +0000 (09:14 -0700)
commitc375c69ecad41f68610ad1186355822e28744476
tree98b7a521b14cb7f927404196eb7eb852cbdd9884
parentac4985e48dfcf030418df0f0ce9bf153ba12ba03
Fix 'zfs list -t snapshot' depth

Commit df583073 introduced the ability to list the snapshots for a
specified dataset.  This change inadvertently resulted in only the top-
level snapshots being listed when no dataset was specified.  Fix this
issue by adding an additional check to determine if a dataset was
provided to avoid incorrectly restricting the depth.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Alek Pinchuk <apinchuk@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8591
Closes #8594
cmd/zfs/zfs_main.c