public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH RFC 1/2] ubi: add flags1 field to the EC header
@ 2016-12-30 17:11 Rafał Miłecki
  2016-12-30 17:11 ` [PATCH RFC 2/2] ubi: add support for UBI_EC_FLAG_ERASE_FROM_HERE Rafał Miłecki
  0 siblings, 1 reply; 6+ messages in thread
From: Rafał Miłecki @ 2016-12-30 17:11 UTC (permalink / raw)
  To: Richard Weinberger, Artem Bityutskiy; +Cc: linux-mtd, Rafał Miłecki

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 --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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-31 10:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-30 17:11 [PATCH RFC 1/2] ubi: add flags1 field to the EC header Rafał Miłecki
2016-12-30 17:11 ` [PATCH RFC 2/2] ubi: add support for UBI_EC_FLAG_ERASE_FROM_HERE Rafał Miłecki
2016-12-30 20:47   ` Richard Weinberger
2016-12-30 21:44     ` Rafał Miłecki
2016-12-31 10:03       ` Richard Weinberger
2016-12-31  9:37     ` Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox