diff options
Diffstat (limited to 'tests/ubi-tests/io_basic.c')
-rw-r--r-- | tests/ubi-tests/io_basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ubi-tests/io_basic.c b/tests/ubi-tests/io_basic.c index 2e8809a..26544cc 100644 --- a/tests/ubi-tests/io_basic.c +++ b/tests/ubi-tests/io_basic.c @@ -135,7 +135,7 @@ static int test_aligned(int type) struct ubi_mkvol_request req; const char *name = TESTNAME ":test_aligned()"; char vol_node[strlen(UBI_VOLUME_PATTERN) + 100]; - int alignments[] = ALIGNMENTS(dev_info.eb_size); + int alignments[] = ALIGNMENTS(dev_info.leb_size); req.vol_type = type; req.name = name; @@ -148,7 +148,7 @@ static int test_aligned(int type) if (req.alignment == 0) req.alignment = dev_info.min_io_size; - ebsz = dev_info.eb_size - dev_info.eb_size % req.alignment; + ebsz = dev_info.leb_size - dev_info.leb_size % req.alignment; req.bytes = MIN_AVAIL_EBS * ebsz; if (ubi_mkvol(libubi, node, &req)) { |