Brian Behlendorf c375c69eca
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
2019-04-08 09:14:45 -07:00
..
2019-03-13 10:43:55 -07:00
2013-01-09 16:54:58 -08:00
2019-04-08 09:14:45 -07:00
2017-07-25 13:22:03 -04:00
2019-03-15 14:14:31 -07:00
2019-03-29 09:13:20 -07:00
2017-08-15 17:26:38 -07:00