HomeFreeBSD

zvol: fix delayed update to block device ro entry

Description

zvol: fix delayed update to block device ro entry

The change in the zvol readonly property does not update the block
device readonly entry until the first IO to the ZVOL. This patch
addresses the issue by updating the block device readonly property
from the set property IOCTL call.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #15409

Details

Provenance
Ameer Hamza <ahamza@ixsystems.com>Authored on Oct 17 2023, 7:19 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 31 2023, 4:50 PM
Parents
rG60387facd267: zvol: Implement zvol threading as a Property
Branches
Unknown
Tags
Unknown