HomeFreeBSD

ZTS: Fix zvol_misc_volmode test

Description

ZTS: Fix zvol_misc_volmode test

Changing volmode may need to remove minors, which could be open, so
call udev_wait() before we "zfs set volmode=<value>". This ensures
no udev process has the zvol open (i.e. blkid) and the kernel
zvol_remove_minor_impl() function won't skip removing the in use
device.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13075

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Feb 10 2022, 1:00 AM
Tony Hutter <hutter2@llnl.gov>Committed on Feb 17 2022, 1:58 AM
Parents
rGbc99c809d503: Add dataset_kstats_update.. to mmap read/write paths
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGf03cf651ec72: ZTS: Fix zvol_misc_volmode test (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Feb 17 2022, 1:58 AM