summaryrefslogtreecommitdiff
path: root/tests/ubi-tests/mkvol_bad.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-23 18:32:09 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-23 18:32:09 +0200
commitdb697836173e90d95390649287648cdd420e1b43 (patch)
tree63454baa7bab644ed72a93741f5cc8f845d86843 /tests/ubi-tests/mkvol_bad.c
parent233824d00b526d82dd2ef05d6dad4dbc5b4cc943 (diff)
ubi-tests: update to recent libubi changes
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/ubi-tests/mkvol_bad.c')
-rw-r--r--tests/ubi-tests/mkvol_bad.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ubi-tests/mkvol_bad.c b/tests/ubi-tests/mkvol_bad.c
index 023b06b..5f2ddf0 100644
--- a/tests/ubi-tests/mkvol_bad.c
+++ b/tests/ubi-tests/mkvol_bad.c
@@ -108,7 +108,7 @@ static int test_mkvol(void)
req.alignment))
return -1;
- req.alignment = dev_info.eb_size + 1;
+ req.alignment = dev_info.leb_size + 1;
ret = ubi_mkvol(libubi, node, &req);
if (check_failed(ret, EINVAL, "ubi_mkvol", "alignment = %d",
req.alignment))
@@ -139,16 +139,16 @@ static int test_mkvol(void)
if (check_failed(ret, ENOSPC, "ubi_mkvol", "bytes = %lld", req.bytes))
return -1;
- req.alignment = dev_info.eb_size - dev_info.min_io_size;
- req.bytes = (dev_info.eb_size - dev_info.eb_size % req.alignment) *
- dev_info.avail_ebs + 1;
+ req.alignment = dev_info.leb_size - dev_info.min_io_size;
+ req.bytes = (dev_info.leb_size - dev_info.leb_size % req.alignment) *
+ dev_info.avail_lebs + 1;
ret = ubi_mkvol(libubi, node, &req);
if (check_failed(ret, ENOSPC, "ubi_mkvol", "bytes = %lld", req.bytes))
return -1;
/* Bad vol_type */
req.alignment = 1;
- req.bytes = dev_info.eb_size;
+ req.bytes = dev_info.leb_size;
req.vol_type = UBI_DYNAMIC_VOLUME + UBI_STATIC_VOLUME;
ret = ubi_mkvol(libubi, node, &req);
if (check_failed(ret, EINVAL, "ubi_mkvol", "vol_type = %d",