diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-23 18:32:09 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-23 18:32:09 +0200 |
commit | db697836173e90d95390649287648cdd420e1b43 (patch) | |
tree | 63454baa7bab644ed72a93741f5cc8f845d86843 /tests/ubi-tests/io_basic.c | |
parent | 233824d00b526d82dd2ef05d6dad4dbc5b4cc943 (diff) |
ubi-tests: update to recent libubi changes
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
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)) { |