Commit 8eca9fa
common/rc, scsi/011, zbd/010: introduce _page_size_equals() helper
Introduce new helper functions `_get_page_size` to get system page
size, and `_page_size_equals()` to check whether the system page size
equals to the value specified. Update `scsi/011` and `zbd/010` to use
the helpers and gracefully skip the tests if the page size is not
4096 bytes. This prevents test failures on 64K page architectures. The
failure is expected since F2FS does not support 64K page size.
According to the discussion at the Fixes tag link, it is expected the
test cases work well with 16K page size. However, this commit makes the
test cases skipped on systems with 16K page size. It is the left work to
enable the test cases under 16K page size condition.
Fixes: #234
Suggested-by: Bart Van Assche <[email protected]>
Signed-off-by: Yi Zhang <[email protected]>
[Shin'ichiro: amended commit message]
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>1 parent af0b85f commit 8eca9fa
3 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
555 | 580 | | |
556 | 581 | | |
557 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments