HomeFreeBSD

FreeBSD: Replace legacy make_dev() interface usage

Description

FreeBSD: Replace legacy make_dev() interface usage

The function make_dev_s() was introduced to replace make_dev() in
FreeBSD 11.0. It allows further specification of properties and flags
and returns an error code on failure. Using this we can fail loading
the module more gracefully than a panic in situations such as when a
device named zfs already exists. We already use it for zvols.

Use make_dev_s() for /dev/zfs.

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

Details

Provenance
freqlabsAuthored on Sep 8 2022, 5:40 PM
GitHub <noreply@github.com>Committed on Sep 8 2022, 5:40 PM
Parents
rGe27e692bcc2c: zed: Fix config_sync autoexpand flood
Branches
Unknown
Tags
Unknown