summaryrefslogtreecommitdiff
path: root/tests/ubi-tests/io_paral.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/io_paral.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/io_paral.c')
-rw-r--r--tests/ubi-tests/io_paral.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ubi-tests/io_paral.c b/tests/ubi-tests/io_paral.c
index 488a0b0..3d1b901 100644
--- a/tests/ubi-tests/io_paral.c
+++ b/tests/ubi-tests/io_paral.c
@@ -84,12 +84,12 @@ int main(int argc, char * const argv[])
mem_limit = memory_limit();
if (mem_limit && mem_limit < dev_info.avail_bytes)
total_bytes = req.bytes =
- (mem_limit / dev_info.eb_size / THREADS_NUM)
- * dev_info.eb_size;
+ (mem_limit / dev_info.leb_size / THREADS_NUM)
+ * dev_info.leb_size;
else
total_bytes = req.bytes =
- ((dev_info.avail_ebs - 3) / THREADS_NUM)
- * dev_info.eb_size;
+ ((dev_info.avail_lebs - 3) / THREADS_NUM)
+ * dev_info.leb_size;
for (i = 0; i < THREADS_NUM; i++) {
char name[100];
@@ -108,7 +108,7 @@ int main(int argc, char * const argv[])
req.vol_id = THREADS_NUM;
req.name = TESTNAME ":static";
req.vol_type = UBI_DYNAMIC_VOLUME;
- req.bytes = 3*dev_info.eb_size;
+ req.bytes = 3*dev_info.leb_size;
if (ubi_mkvol(libubi, node, &req)) {
failed("ubi_mkvol");
goto remove;