HomeFreeBSD

zvol_os: Properly ignore error in volmode lookup

Description

zvol_os: Properly ignore error in volmode lookup

We fall back to a default volmode and continue when looking up a zvol's
volmode property fails. After this we should set the error to 0 to
ensure we take the success paths in the out section.

While here, make sure we only log that the zvol was created on success.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11117

Details

Provenance
freqlabsAuthored on Oct 21 2020, 5:59 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 30 2020, 10:34 PM
Parents
rG1a6a75ac0745: zvol_os: Code cleanup in zvol_create_minor_impl
Branches
Unknown
Tags
Unknown

Event Timeline