Franciszek Pindel
ff0cc742c1
fs: ext2: Test removing indirect blocks
...
This commit adds test for the situation when all blocks
referenced from the top-level indirect block are removed.
Signed-off-by: Franciszek Pindel <fpindel@antmicro.com>
2024-04-19 10:13:09 +02:00
Franciszek Pindel
e13d1b47c6
fs: ext2: Fix calculating fs_memory in ext2_format
...
First sector starts at CONFIG_EXT2_DISK_STARTING_SECTOR.
This commit fixes calculating free space, based on that value.
Signed-off-by: Franciszek Pindel <fpindel@antmicro.com>
2024-04-11 09:07:43 +02:00
Franciszek Zdobylak
2e2a3cbd44
tests: fs: ext2: Add ext specific tests
...
Create tests specific for ext2 implementation.
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
2023-08-03 12:22:01 -04:00
Franciszek Zdobylak
1169e09fab
tests: fs: ext2: fix after changes in mkfs
...
Remove 'lost+found' dir in test that expects empty layout of directory.
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
2023-08-03 12:22:01 -04:00
Franciszek Zdobylak
10364b756f
tests: fs: ext2: Add basic fs test
...
Use test_fs_basic test in ext2 tests.
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
2023-08-03 12:22:01 -04:00
Franciszek Zdobylak
deea6a070b
tests: fs: ext2: Add dirops test
...
Use test_fs_dirops in ext2 tests.
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
2023-08-03 12:22:01 -04:00
Franciszek Zdobylak
9b5bbcfd50
tests: fs: ext2: Open flags test
...
Use common test_fs_open_flags test in ext2 tests.
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
2023-08-03 12:22:01 -04:00
Franciszek Zdobylak
7b7b334bc3
tests: fs: ext2: use fs_stat in directory tests
...
Use fs_stat function in tests.
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
2023-08-03 12:22:01 -04:00
Franciszek Zdobylak
d86e880f6d
tests: fs: ext2: Mount flags test
...
Use test_fs_mount_flags in ext2 tests.
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
2023-08-03 12:22:01 -04:00
Franciszek Zdobylak
9229cbbf43
tests: fs: ext2: create file and directory tests
...
Provide tests for file and directory creation.
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
2023-08-03 12:22:01 -04:00
Franciszek Zdobylak
1968910375
tests: fs: ext2: Mount tests
...
Implement tests for ext2 implementation. Tests can run on native_posix
platforms and on hifive_unmatched.
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
2023-08-03 12:22:01 -04:00