mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
|
|
Configuration file with sections
|
||
|
|
================================
|
||
|
|
|
||
|
|
Configuration file with sections is useful for running xfstests on multiple
|
||
|
|
file systems, or multiple file system setups in a single run without any
|
||
|
|
help of external scripts.
|
||
|
|
|
||
|
|
Syntax for defining a section is the following:
|
||
|
|
|
||
|
|
[section_name]
|
||
|
|
|
||
|
|
Section name should consist of alphanumeric characters and '_'. Anything
|
||
|
|
else is forbidden and the section will not be recognised.
|
||
|
|
|
||
|
|
Each section in the configuration file should contain options in the format
|
||
|
|
|
||
|
|
OPTION=value
|
||
|
|
|
||
|
|
'OPTION' must not contain any white space characters. 'value' can contain
|
||
|
|
any character you want with one simple limitation - characters ' and " can
|
||
|
|
only appear at the start and end of the 'value', however it is not required.
|
||
|
|
|
||
|
|
Note that options are carried between sections so the same options does not
|
||
|
|
have to be specified in each and every sections. However caution should be
|
||
|
|
exercised not to leave unwanted options set from previous sections.
|
||
|
|
|
||
|
|
For every section xfstests will run with specified options and will produce
|
||
|
|
separate results in the '$RESULT_BASE/$section_name' directory.
|
||
|
|
|
||
|
|
Here is an example of config file with sections:
|
||
|
|
|
||
|
|
[ext4_4k_block_size]
|
||
|
|
TEST_DEV=/dev/sda
|
||
|
|
TEST_DIR=/mnt/test
|
||
|
|
SCRATCH_DEV=/dev/sdb
|
||
|
|
SCRATCH_MNT=/mnt/test1
|
||
|
|
MKFS_OPTIONS="-q -F -b4096"
|
||
|
|
FSTYP=ext4
|
||
|
|
|
||
|
|
[ext4_1k_block_size]
|
||
|
|
MKFS_OPTIONS="-q -F -b1024"
|
||
|
|
|
||
|
|
[ext4_nojournal]
|
||
|
|
MKFS_OPTIONS="-q -F -b4096 -O ^has_journal"
|
||
|
|
|
||
|
|
[ext4_discard_ssd]
|
||
|
|
MKFS_OPTIONS="-q -F -b4096"
|
||
|
|
TEST_DEV=/dev/sdc
|
||
|
|
SCRATCH_DEV=/dev/sdd
|
||
|
|
MOUNT_OPTIONS="-o discard"
|