From 54b41db9a6c2ec78c5c768972dda59283563eb9d Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 12 Feb 2016 13:20:34 +0100 Subject: [PATCH] metadata: introduce PV_EXT_USED flag and bump PV_HEADER_EXTENSION_VSN --- lib/format_text/layout.h | 7 ++++++- lib/metadata/metadata-exported.h | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/format_text/layout.h b/lib/format_text/layout.h index b8a2774d3..75a935ba5 100644 --- a/lib/format_text/layout.h +++ b/lib/format_text/layout.h @@ -23,7 +23,12 @@ /* disk_locn and data_area_list are defined in format-text.h */ -#define PV_HEADER_EXTENSION_VSN 1 +/* + * PV header extension versions: + * - version 1: bootloader area support + * - version 2: PV_EXT_USED flag support + */ +#define PV_HEADER_EXTENSION_VSN 2 struct pv_header_extension { uint32_t version; diff --git a/lib/metadata/metadata-exported.h b/lib/metadata/metadata-exported.h index 5cf7c88f8..fc09e2e99 100644 --- a/lib/metadata/metadata-exported.h +++ b/lib/metadata/metadata-exported.h @@ -40,6 +40,9 @@ /* Layer suffix */ #define MIRROR_SYNC_LAYER "_mimagetmp" +/* PV extension flags */ +#define PV_EXT_USED UINT32_C(0x00000001) + /* Various flags */ /* Note that the bits no longer necessarily correspond to LVM1 disk format */