summaryrefslogtreecommitdiff
path: root/mkfs.ubifs
diff options
context:
space:
mode:
authorViktar Palstsiuk <viktar.palstsiuk@promwad.com>2011-08-20 07:07:37 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@intel.com>2011-08-20 07:07:37 +0300
commit92ed6c0bf6f6793395cdeec5a61ac2059b005056 (patch)
tree8770f62c2b47cba42fd0ef3f62d346c8873bc572 /mkfs.ubifs
parentb602ab59b9782003d1179488d8c1580bc8563738 (diff)
mkfs.ubifs/ubinize: increase PEB size limit to 2MiB
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@intel.com>
Diffstat (limited to 'mkfs.ubifs')
-rw-r--r--mkfs.ubifs/mkfs.ubifs.c2
-rw-r--r--mkfs.ubifs/ubifs.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c
index dcdb722..f77e5e6 100644
--- a/mkfs.ubifs/mkfs.ubifs.c
+++ b/mkfs.ubifs/mkfs.ubifs.c
@@ -390,7 +390,7 @@ static int validate_options(void)
return err_msg("LEB should be multiple of min. I/O units");
if (c->leb_size % 8)
return err_msg("LEB size has to be multiple of 8");
- if (c->leb_size > 1024*1024)
+ if (c->leb_size > UBIFS_MAX_LEB_SZ)
return err_msg("too large LEB size %d", c->leb_size);
if (c->max_leb_cnt < UBIFS_MIN_LEB_CNT)
return err_msg("too low max. count of LEBs, minimum is %d",
diff --git a/mkfs.ubifs/ubifs.h b/mkfs.ubifs/ubifs.h
index f94a52c..434b651 100644
--- a/mkfs.ubifs/ubifs.h
+++ b/mkfs.ubifs/ubifs.h
@@ -25,6 +25,9 @@
#ifndef __UBIFS_H__
#define __UBIFS_H__
+/* Maximum logical eraseblock size in bytes */
+#define UBIFS_MAX_LEB_SZ (2*1024*1024)
+
/* Minimum amount of data UBIFS writes to the flash */
#define MIN_WRITE_SZ (UBIFS_DATA_NODE_SZ + 8)