From d49567ea27ee32a7733f8c9b54eacdba10b1860d Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Wed, 28 Jan 2009 14:19:43 +0200 Subject: 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 --- mkfs.ubifs/ubifs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mkfs.ubifs/ubifs.h') diff --git a/mkfs.ubifs/ubifs.h b/mkfs.ubifs/ubifs.h index 48a583c..79c7192 100644 --- a/mkfs.ubifs/ubifs.h +++ b/mkfs.ubifs/ubifs.h @@ -293,6 +293,8 @@ struct ubifs_znode * @dark_wm: LEB dark space watermark * * @gc_lnum: LEB number used for garbage collection + * @rp_size: reserved pool size + * * @space_bits: number of bits needed to record free or dirty space * @lpt_lnum_bits: number of bits needed to record a LEB number in the LPT * @lpt_offs_bits: number of bits needed to record an offset in the LPT @@ -365,6 +367,7 @@ struct ubifs_info int dark_wm; int gc_lnum; + long long rp_size; int space_bits; int lpt_lnum_bits; -- cgit v1.2.3