]> git.proxmox.com Git - mirror_zfs.git/commit
Improve snapshot listing error message
authorMd Islam <mdnahian@outlook.com>
Tue, 30 Oct 2018 16:47:50 +0000 (12:47 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 30 Oct 2018 16:47:50 +0000 (11:47 -0500)
commit9042f6033a72e2ffbd4f92af7de83ad0f81f1dfc
tree378db70f53004722546bbc0bd74ff594d8139e0d
parent0a544c174d54d9adcea2faf5817596174582139e
Improve snapshot listing error message

Provide a hint in the error message if listing snapshots for a
single dataset fails.

Using -r is not needed to list all snapshots so requiring it when
listing snapshots for a single dataset makes it confusing. This
change will make the error message more clear.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Md Islam <mdnahian@outlook.com>
Closes #8047
lib/libzfs/libzfs_dataset.c