fs-tests: integck: handle write errors
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest35 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/35 | fs-tests: integck: introduce power cut testing argumentstests/ | +25 | 0 replies | |
| 2/35 | fs-tests: integck: check deletion errors in rm_minus_rf_dirtests/ | +40 | 0 replies | |
| 3/35 | fs-tests: integck: handle write failures in dir_newtests/ | +16 | 0 replies | |
| 4/35 | fs-tests: integck: handle errors in remount_tested_fstests/ | +24 | 0 replies | |
| 5/35 | fs-tests: integck: handle errors when creating test datatests/ | +71 | 0 replies | |
| 6/35 | fs-tests: integck: make more functions propogate error uptests/ | +69 | 0 replies | |
| 7/35 | fs-tests: integck: teach file_truncate return error codetests/ | +31 | 0 replies | |
| 8/35 | fs-tests: integck: handle errors in file_deletetests/ | +54 | 0 replies | |
| 9/35 | fs-tests: integck: handle all failures in operate_on_open_filetests/ | +17 | 0 replies | |
| 10/35 | fs-tests: integck: handle errors in file_mmap_writetests/ | +23 | 0 replies | |
| 11/35 | fs-tests: integck: teach file_write_data return an errortests/ | +21 | 0 replies | |
| 12/35 | fs-tests: integck: rename BUFFER_SIZEtests/ | +29 | 0 replies | |
| 13/35 | fs-tests: integck: use unsigned int everywheretests/ | +21 | 0 replies | |
| 14/35 | fs-tests: integck: fix placeholders when printingtests/ | +20 | 0 replies | |
| 15/35 | fs-tests: integck: make file_new return error on create failuretests/ | +12 | 0 replies | |
| 16/35 | fs-tests: integck: teach dir_new return error on creation failuretests/ | +18 | 0 replies | |
| 17/35 | fs-tests: integck: teach symlink_new to return error on creation failuretests/ | +17 | 0 replies | |
| 18/35 | fs-tests: integck: teach link_new to return error on creation failuretests/ | +13 | 0 replies | |
| 19/35 | fs-tests: integck: make operate_on_dir propagate errors uptests/ | +14 | 0 replies | |
| 20/35 | fs-tests: integck: make rename_entry return error on failuretests/ | +13 | 0 replies | |
| 21/35 | fs-tests: integck: teach symlink_remove return error on removal failuretests/ | +9 | 0 replies | |
| 22/35 | fs-tests: integck: teach dir_remove return error and fix a memory leaktests/ | +21 | 0 replies | |
| 23/35 | fs-tests: integck: teach file_unlink_file return an errortests/ | +7 | 0 replies | |
| 24/35 | fs-tests: integck: make operate_on_entry handle all errorstests/ | +23 | 0 replies | |
| 25/35 | fs-tests: integck: make file_open return error on failuretests/ | +15 | 0 replies | |
| 26/35 | fs-tests: integck: make file_truncate_file return errortests/ | +24 | 0 replies | |
| 27/35 | fs-tests: integck: fix memory lead in dir_removetests/ | +1 | 0 replies | |
| 28/35 | fs-tests: integck: fix memory leak in dir_newtests/ | +0 | 0 replies | |
| 29/35 | fs-tests: integck: introduce free_writes_info helpertests/ | +24 | 0 replies | |
| 30/35 | fs-tests: integck: free raw write informationtests/ | +7 | 0 replies | |
| 31/35 | fs-tests: integck: remove symlinks memory leakstests/ | +2 | 0 replies | |
| 32/35 | fs-tests: integck: clean up add_dir_entry usagetests/ | +1 | 0 replies | |
| 33/35 | fs-tests: integck: lessen memory consumptiontests/ | +8 | 0 replies | |
| 34/35 | fs-tests: integck: lessen memory consumption even moretests/ | +6 | 0 replies | |
| 35/35 | fs-tests: integck: assume that the parent is present in new_dirtests/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/35] fs-tests: integck: handle write errors
Hi,
this is the continuation of my effort to improve integck. This series of patches teaches integck to not die immediately when a write error happens.
Currently integck exits if any unexpected error occurs. However, I am going to make it usable for power-cut emulation testing, so when UBI decides to emulate a power-cut and all write operation will return with EROFS error, the test will also exit. So this patch-set teaches all functions which do FS modifications to return an error up to the caller if the operation fails. Then the error propagated to the main() function, which currently just exits. But the plan is:
1. Make 'main()' unmount UBIFS, detach UBI, attach UBI back, mount UBIFS back.
2. Go through all files which were synchronized before the emulated power cut and check that the contents of these file is correct.
3. Restart the test.
And then the plan is to implement unstable bits emulation in UBI and run this test, and catch bugs, and fix this.
So, this is just a preparation. The integck code is a bit dirty and was written using "quick programming" approach. This patch-set tries to also clean up the code a little bit.
Additionally, this patch-set fixes the huge amount of memory leaks the test has had, and also lessens the memory consumption.
And finally, I tried to split the patches nicely, but I do not have much time so the split is far far not ideal. I think it is good enough, though, taking into account that there are only 2 users of this test I know.
Artem.