[PATCH RFC 1/2] ubi: add flags1 field to the EC header
Rafał Miłecki
zajec5 at gmail.com
Fri Dec 30 09:11:50 PST 2016
From: Rafał Miłecki <rafal at milecki.pl>
It allows storing extra information about header or a whole PEB.
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
drivers/mtd/ubi/ubi-media.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/ubi/ubi-media.h b/drivers/mtd/ubi/ubi-media.h
index 22ed3f6..58065ef 100644
--- a/drivers/mtd/ubi/ubi-media.h
+++ b/drivers/mtd/ubi/ubi-media.h
@@ -125,6 +125,7 @@ enum {
* @magic: erase counter header magic number (%UBI_EC_HDR_MAGIC)
* @version: version of UBI implementation which is supposed to accept this
* UBI image
+ * @flags1: flags describing header/block
* @padding1: reserved for future, zeroes
* @ec: the erase counter
* @vid_hdr_offset: where the VID header starts
@@ -157,7 +158,8 @@ enum {
struct ubi_ec_hdr {
__be32 magic;
__u8 version;
- __u8 padding1[3];
+ __u8 flags1;
+ __u8 padding1[2];
__be64 ec; /* Warning: the current limit is 31-bit anyway! */
__be32 vid_hdr_offset;
__be32 data_offset;
--
2.10.1
More information about the linux-mtd
mailing list