Re: [PATCH v2 00/34] Open block devices as files

Matthew Wilcox
2024-03-22T12:40:07Z

[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]

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.

[-- Attachment #2: config-brauner.gz --]
[-- Type: application/gzip, Size: 18686 bytes --]