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/mkvol_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/mkvol_basic.c')
-rw-r--r-- | tests/ubi-tests/mkvol_basic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ubi-tests/mkvol_basic.c b/tests/ubi-tests/mkvol_basic.c index e2120e9..f9f1c69 100644 --- a/tests/ubi-tests/mkvol_basic.c +++ b/tests/ubi-tests/mkvol_basic.c @@ -80,7 +80,7 @@ static int mkvol_alignment(void) struct ubi_mkvol_request req; int i, vol_id, ebsz; const char *name = TESTNAME ":mkvol_alignment()"; - int alignments[] = ALIGNMENTS(dev_info.eb_size); + int alignments[] = ALIGNMENTS(dev_info.leb_size); for (i = 0; i < sizeof(alignments)/sizeof(int); i++) { req.vol_id = UBI_VOL_NUM_AUTO; @@ -92,8 +92,8 @@ static int mkvol_alignment(void) req.alignment = dev_info.min_io_size; /* Bear in mind alignment reduces EB size */ - ebsz = dev_info.eb_size - dev_info.eb_size % req.alignment; - req.bytes = dev_info.avail_ebs * ebsz; + ebsz = dev_info.leb_size - dev_info.leb_size % req.alignment; + req.bytes = dev_info.avail_lebs * ebsz; req.vol_type = UBI_DYNAMIC_VOLUME; req.name = name; |