HomeFreeBSD

zvol: generalise zvol_remove_minors_impl() for single zvol case

Description

zvol: generalise zvol_remove_minors_impl() for single zvol case

zvol_remove_minor_impl() and zvol_remove_minors_impl() should be
identical except for how they select zvols to remove, so lets just use
the same function with a flag to indicate if we should include children
and snapshots or not.

Sponsored-by: Klara, Inc.
Sponsored-by: Railway Corporation
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Fedor Uporov <fuporov.vstack@gmail.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17625

Details

Provenance
rob.norris_klarasystems.comAuthored on Aug 5 2025, 2:50 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 19 2025, 5:06 PM
Parents
rG6bb8fe552828: ZTS: stress test concurrent zvol create/destroy
Branches
Unknown
Tags
Unknown