HomeFreeBSD

Linux 6.5 compat: check BLK_OPEN_EXCL is defined

Description

Linux 6.5 compat: check BLK_OPEN_EXCL is defined

On some systems we already have blkdev_get_by_path() with 4 args
but still the old FMODE_EXCL and not BLK_OPEN_EXCL defined.
The vdev_bdev_mode() function was added to handle this case
but there was no generic way to specify exclusive access.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #15692

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 21 2023, 7:22 PM
Parents
rG3c502e376b77: ZTS: Disable io_uring test on CentOS 9
Branches
Unknown
Tags
Unknown