summaryrefslogtreecommitdiff
path: root/mkfs.ubifs/lpt.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-28 14:19:43 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-28 14:39:31 +0200
commitd49567ea27ee32a7733f8c9b54eacdba10b1860d (patch)
treea22154b5e58fd02e5a48ef439ecd36ada14cf05f /mkfs.ubifs/lpt.c
parenta5d3a800db996aa81a07c0ae42240971460ac00d (diff)
mkfs.ubifs: support reserved space allocation
UBIFS may reserve some amount of flash space for the super-user, ant this amount is stored in the superblock. Currently mkfs.ubifs always puts 0 there. This patch adds -R option which may be used to specify size of the reserved space. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'mkfs.ubifs/lpt.c')
-rw-r--r--mkfs.ubifs/lpt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkfs.ubifs/lpt.c b/mkfs.ubifs/lpt.c
index 48ae03f..c8fb22c 100644
--- a/mkfs.ubifs/lpt.c
+++ b/mkfs.ubifs/lpt.c
@@ -549,6 +549,7 @@ int create_lpt(struct ubifs_info *c)
c->nhead_lnum = lnum;
c->nhead_offs = ALIGN(len, c->min_io_size);
+ dbg_msg(1, "lpt_sz: %d", c->lpt_sz);
dbg_msg(1, "space_bits: %d", c->space_bits);
dbg_msg(1, "lpt_lnum_bits: %d", c->lpt_lnum_bits);
dbg_msg(1, "lpt_offs_bits: %d", c->lpt_offs_bits);