Skip to content

mtd-utils: make integck test independent

Artem Bityutskiy linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest27 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/27fs-tests: integck: shrink dir_entry_info structure sizetests/fs-tests/integrity/integck.c+2 -20 replies
2/27fs-tests: integck: shrink file_info structure sizetests/fs-tests/integrity/integck.c+3 -30 replies
3/27fs-tests: integck: srink file_info structure even moretests/fs-tests/integrity/integck.c+2 -20 replies
4/27fs-tests: integck: abuse random_offset field nicertests/fs-tests/integrity/integck.c+6 -30 replies
5/27fs-tests: integck: shrink write_info even moretests/fs-tests/integrity/integck.c+18 -70 replies
6/27fs-tests: integck: change tests defaultstests/fs-tests/integrity/integck.c+10 -70 replies
7/27fs-tests: integck: implement own parameters parsingtests/fs-tests/integrity/integck.c+81 -310 replies
8/27fs-tests: integck: clean-up copy_stringtests/fs-tests/integrity/integck.c+24 -220 replies
9/27fs-tests: integck: get rid of tests_check_test_file_systemtests/fs-tests/integrity/integck.c+64 -60 replies
10/27fs-tests: integck: make integck function return errortests/fs-tests/integrity/integck.c+9 -40 replies
11/27fs-tests: integck: move mem_page_size to fsinfotests/fs-tests/integrity/integck.c+7 -60 replies
12/27fs-tests: integck: move more variables to fsinfotests/fs-tests/integrity/integck.c+25 -200 replies
13/27fs-tests: integck: add own get_free_space functiontests/fs-tests/integrity/integck.c+16 -40 replies
14/27fs-tests: integck: move log10_initial_free to fsinfotests/fs-tests/integrity/integck.c+8 -110 replies
15/27fs-tests: integck: remove trailing backslashes from mount pointtests/fs-tests/integrity/integck.c+14 -50 replies
16/27fs-tests: integck: do not use tests_cat_pidtests/fs-tests/integrity/integck.c+3 -30 replies
17/27fs-tests: integck: clean up test directory creationtests/fs-tests/integrity/integck.c+22 -120 replies
18/27fs-tests: integck: do not use tests_clear_dirtests/fs-tests/integrity/integck.c+45 -90 replies
19/27fs-tests: integck: do not use space after casttests/fs-tests/integrity/integck.c+18 -180 replies
20/27fs-tests: integck: prefer to check for successtests/fs-tests/integrity/integck.c+24 -240 replies
21/27fs-tests: integck: do not use tests_fs_is_rootfstests/fs-tests/integrity/integck.c+10 -20 replies
22/27fs-tests: integck: do not use tests_remounttests/fs-tests/integrity/integck.c+165 -20 replies
23/27fs-tests: integck: do not use tests_get_total_spacetests/fs-tests/integrity/integck.c+10 -80 replies
24/27fs-tests: integck: do not use global common variablestests/fs-tests/integrity/integck.c+0 -40 replies
25/27fs-tests: integck: do not use tests_random_notests/fs-tests/integrity/integck.c+65 -540 replies
26/27fs-tests: integck: implement own version of CHECKtests/fs-tests/integrity/Makefile tests/fs-tests/integrity/integck.c+16 -80 replies
27/27fs-tests: integck: do not expect max name length to be 256tests/fs-tests/integrity/integck.c+14 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/27] mtd-utils: make integck test independent

Hi, here is a patch-set which makes the integck test independent on the common code which tests in tests/fs-tests/ directory share. You may be wondering why the hack you need this :-) The explanation is rather long.

Q: Why you need to have integck independent?
A: Well, first of all I think integck is the only cool and useful test
in the whole fs-tests directory. To other ones are not really useful. And I do not want to touch them at all.

I plan to improve integck later, and this is preparation work. My improvements require nice error handling - not just dying in CHECK() macro. Do do this, I'll need to touch a lot of that common code. But since it is shared, I may brake some of the other tests if I touch it. Thus, I want to have integck independent on the other tests as the first step. And this patch-set is actually the preparation to the further planned work.

Q: So what are you going to do next?
A: Next I want to make all functions return error nicely (and free resources)
if a write or any other FS modification operation fails. Currently the integck test just exits.

Q: Why you need that?
A: To test UBIFS with the power-cut emulation feature on. UBIFS can emulate
power cuts, which means that integck may get an error at any time. In this case the test should be able to re-mount the tested file-system, check that fsync()'ed files are correct, and continue the testing. So nice error handling is just a preparation work.

And longer term this is needed for unstable bits testing. I have UBI patches which emulates power cuts and unstable bits, and UBIFS is supposed to handle them nicely. But it does not currently. And to fix UBI/UBIFS i need a good test which is able to recover when a power cut is emulated and which is able to check integrity of those files which were fsync()'ed before the emulated power cut. But this is long-term plan. Hopefully I'll be able to finish this, but any help will be appreciated.

So, for now just these small preparations.

Artem.