]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/zfs/zfs_main.c
Improve error message of zfs redact
authorPaul Dagnelie <paul.dagnelie@delphix.com>
Wed, 22 Feb 2023 01:30:05 +0000 (17:30 -0800)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2023 01:30:05 +0000 (17:30 -0800)
commitd9e64a4030d141580af2e8b75e8982637818145a
tree88b0e73ff3b78e2384b7b42667daa15eda03696b
parent28251d81d723292a6813f93495f2c6c132938945
Improve error message of zfs redact

We improve the error message of zfs redact by checking if the target
snapshot exists, and if all the redaction snapshots exist. As a
future improvement we could iterate over every snapshot provided and
use that to determine which one specifically doesn't exist.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #11426
Closes #14496
cmd/zfs/zfs_main.c