[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180514112422.23988-3-richard@nod.at>
Date: Mon, 14 May 2018 13:24:16 +0200
From: Richard Weinberger <richard@....at>
To: linux-mtd@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org, Richard Weinberger <richard@....at>
Subject: [PATCH 2/8] ubi: fastmap: Add UBI_FM_SB_PRESEEDED_FLG flag
This flag indicates that the fastmap was preseeded, which means
it was created offline by a tool such as ubinize which cannot know
the whole MTD state such as real size and bad blocks.
As consequence UBI has to take special care to use that fastmap.
Signed-off-by: Richard Weinberger <richard@....at>
---
drivers/mtd/ubi/ubi-media.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/ubi/ubi-media.h b/drivers/mtd/ubi/ubi-media.h
index d25ced1285e2..5ebf40db922f 100644
--- a/drivers/mtd/ubi/ubi-media.h
+++ b/drivers/mtd/ubi/ubi-media.h
@@ -406,7 +406,11 @@ struct ubi_vtbl_record {
#define UBI_FM_MIN_POOL_SIZE 8
#define UBI_FM_MAX_POOL_SIZE 256
-#define UBI_FM_SB_FLG_MASK 0
+enum {
+ UBI_FM_SB_PRESEEDED_FLG = 0x1,
+};
+
+#define UBI_FM_SB_FLG_MASK (UBI_FM_SB_PRESEEDED_FLG)
/**
* struct ubi_fm_sb - UBI fastmap super block
--
2.13.6
Powered by blists - more mailing lists