HomeFreeBSD

Fix optional "force" arg handing in zfs_ioc_pool_sync()

Description

Fix optional "force" arg handing in zfs_ioc_pool_sync()

The fnvlist_lookup_boolean_value() function should not be used
to check the force argument since it's optional. It may not be
provided or may have been created with the wrong flags.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11281
Closes #11284

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 9 2020, 10:52 PM
GitHub <noreply@github.com>Committed on Dec 9 2020, 10:52 PM
Parents
rG1a735e763a4e: CI: add new zfs-tests-sanity workflow
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGedb20ff3bab3: Fix optional "force" arg handing in zfs_ioc_pool_sync() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Dec 9 2020, 10:52 PM