On Fri, Mar 22, 2024 at 12:40:03PM +0000, Matthew Wilcox wrote: > On Fri, Mar 22, 2024 at 01:31:23PM +0100, Christian Brauner wrote: > > > ** mkfs failed with extra mkfs options added to "-m reflink=1,rmapbt=1 -i sparse=1,nrext64=1" by test 015 ** > > > ** attempting to mkfs using only test 015 options: -d size=268435456 -b size=4096 ** > > > mkfs.xfs: cannot open /dev/vdc: Device or resource busy > > > mkfs failed > > > > > > About half the xfstests fail this way (722 of 1387 tests) > > > > Thanks for the report. Can you please show me the kernel config and the > > xfstests config that was used for this? > > Kernel config attached. > > I'll have to defer to Kent on the xfstests config that's used. It might > be this: > > cat << EOF > /ktest/tests/xfstests/local.config > TEST_DEV=${ktest_scratch_dev[0]} > TEST_DIR=$TEST_DIR > SCRATCH_DEV=${ktest_scratch_dev[1]} > SCRATCH_MNT=/mnt/scratch > LOGWRITES_DEV=${ktest_scratch_dev[2]} > RESULT_BASE=/ktest-out/xfstests > LOGGER_PROG=true > EOF > > > Also, while generic/015 is the first to fail, you can't just run > generic/015. You can't even just run 012, 013, 014, 015. I haven't > bisected to exactly how many predecessor tests are necessary to get > a failure. Thanks for the info. So it's as I suspected. The config that was used has # CONFIG_BLK_DEV_WRITE_MOUNTED is not set That means it isn't possible to write to mounted block devices. The default is CONFIG_BLK_DEV_WRITE_MOUNTED=y. I go through all block-based filesystems with xfstests for such changes wit various config options. My test matrix hasn't been updated to specifically unset CONFIG_BLK_DEV_WRITE_MOUNTED which is why this escaped. I'll send a fix shortly.