]> git.proxmox.com Git - mirror_zfs.git/commit
cmd/zfs receive: allow dry-run (-n) to check property args
authorPrawn <Insane.Prawny@gmail.com>
Mon, 12 Apr 2021 16:35:55 +0000 (18:35 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Apr 2021 16:35:55 +0000 (09:35 -0700)
commitee6615e07a8bb68d81d23e06421f4b0235b7f2a7
treea9864134246feea1a7045a54275209f2dc515ae4
parent722b7f9a4c8f1051e624c88160d9ff7e2fbdf6bb
cmd/zfs receive: allow dry-run (-n) to check property args

zfs recv -n does not report some errors it could.  The code to bail
out of the receive if in dry-run mode came a little early, skipping
validation of cmdprops (recv -x and -o) among others.  Move the
check down to enable these additional checks.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
Closes #11862
lib/libzfs/libzfs_sendrecv.c