diff options
| author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-28 14:19:43 +0200 | 
|---|---|---|
| committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-28 14:39:31 +0200 | 
| commit | d49567ea27ee32a7733f8c9b54eacdba10b1860d (patch) | |
| tree | a22154b5e58fd02e5a48ef439ecd36ada14cf05f /mkfs.ubifs/ubifs.h | |
| parent | a5d3a800db996aa81a07c0ae42240971460ac00d (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/ubifs.h')
| -rw-r--r-- | mkfs.ubifs/ubifs.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| 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; | 
