diff mbox

[RFC,1/2] ubi: add flags1 field to the EC header

Message ID 20161230171151.13448-1-zajec5@gmail.com
State RFC
Headers show

Commit Message

Rafał Miłecki Dec. 30, 2016, 5:11 p.m. UTC
From: Rafał Miłecki <rafal@milecki.pl>

It allows storing extra information about header or a whole PEB.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 drivers/mtd/ubi/ubi-media.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

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;