[LTP] [PATCH v1 1/1] test_robind: add "-f" mkfs option for xfs and btrfs

Cyril Hrubis chrubis@suse.cz
Wed May 25 16:10:12 CEST 2016


Hi!
> >> Or we can move the dd that erases first blocks from tst_acquire_device()
> >> to tst_mkfs().
> >
> > I went to re-read why we are avoiding -f, and this does sound better
> > than adding -f back.
> 
> If we move 'dd' to tst_mkfs(), then tst_acquire_device will return 
> "uncleared" devices, and mkfs_ext* test cases from runtest/commands will 
> start failing in our environment, i.e. we revert f79021c5d168256.

Well the mkfs testcase is special in a sense that it calls the mkfs
directly. So we may as well move the dd to tst_mfks() and do separate dd
in the mkfs testcase.

But doing 'git grep mkfs' reveals that we have more tests that call mkfs
directly and may start to fail in this case. :(

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list