summaryrefslogtreecommitdiff
path: root/mkfs.ubifs/ubifs-media.h
diff options
context:
space:
mode:
authorMatthew L. Creech <mlcreech@gmail.com>2011-05-11 17:02:28 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-20 13:16:10 +0300
commit04665066ebedb0a31335b525fb5f19df32cb8cfe (patch)
treed4a3fbdfcb70a2be76365780b4ca2410b26b81af /mkfs.ubifs/ubifs-media.h
parentb5251b5b1d3aea0e724a0c4cd8c95897ecb0c312 (diff)
mkfs.ubifs: add "-F" option for "free-space fixup"
This adds a superblock flag indicating that "free-space fixup" is needed, and allows it to be set by the user via the "-F" command-line option. The first time the filesystem is mounted, this flag will trigger a one-time re-mapping of all LEBs containing free space. This fixes problems seen on some NAND flashes when a non-UBIFS-aware flash programmer is used. Artem: add a bit more help text, tweaked the patch a bit. Thanks to Ben Gardiner <bengardiner@nanometrics.ca> for help. Signed-off-by: Matthew L. Creech <mlcreech@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'mkfs.ubifs/ubifs-media.h')
-rw-r--r--mkfs.ubifs/ubifs-media.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkfs.ubifs/ubifs-media.h b/mkfs.ubifs/ubifs-media.h
index a9ecbd9..fe62d0e 100644
--- a/mkfs.ubifs/ubifs-media.h
+++ b/mkfs.ubifs/ubifs-media.h
@@ -373,9 +373,11 @@ enum {
* Superblock flags.
*
* UBIFS_FLG_BIGLPT: if "big" LPT model is used if set
+ * UBIFS_FLG_SPACE_FIXUP: first-mount "fixup" of free space within LEBs needed
*/
enum {
UBIFS_FLG_BIGLPT = 0x02,
+ UBIFS_FLG_SPACE_FIXUP = 0x04,
};
/**