]> granicus.if.org Git - zfs/commit
Make encrypted "zfs mount -a" failures consistent
authorTom Caputi <tcaputi@datto.com>
Fri, 6 Apr 2018 20:28:15 +0000 (16:28 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 Apr 2018 20:28:15 +0000 (13:28 -0700)
commit1bf9a552bb52785d5d838108574443e35682c85c
treeee892d11b682c262c4fa052b43c032052ee42061
parent533ea0415bd788530ff894bc0edbc3cea20fbe4c
Make encrypted "zfs mount -a" failures consistent

Currently, "zfs mount -a" will print a warning and fail to mount
any encrypted datasets that do not have a key loaded. This patch
makes the behavior of this failure consistent with other failure
modes ("zfs mount -a" will silently continue, explict "zfs mount"
will print a message and return an error code.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7382
cmd/zfs/zfs_main.c
tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_encrypted.ksh