[lvm-devel] [PATCH]unit-test: modify the test case to support systems with PAGE_SIZE of 64K

Zdenek Kabelac zdenek.kabelac at gmail.com
Mon Feb 22 12:38:08 UTC 2021


Dne 22. 02. 21 v 9:01 Wu Guanghao napsal(a):
> Hi
> 
> Now we want to compile lvm2 on a machine whose PAGE_SIZE is 64K and
> enable unit test at the same time. However, we found that some test cases
> cannot be executed normally, so we made some modifications.
> 
> 
>> -#define T_BLOCK_SIZE 4096
> +#define T_BLOCK_SIZE 65536
>   #define NR_BLOCKS 64
>   #define INIT_PATTERN 123

Hi

Whole patch likely needs to be based on some 'configure' discovered define
(likely  sysconf(_SC_PAGESIZE))

So the patch itself cannot turn everything into 64K - but should adapt 
dynamically to system condition (so the existing coverage is not lost/changed).

Regards


Zdenek




More information about the lvm-devel mailing list