diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2016-02-12 13:20:34 +0100 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2016-02-15 12:44:46 +0100 |
commit | 54b41db9a6c2ec78c5c768972dda59283563eb9d (patch) | |
tree | 481c32becace1678d71fb026fb6b8d1112b9e253 | |
parent | a522af93b7365d183fd7f82ac65cc7f3bed2423a (diff) | |
download | lvm2-54b41db9a6c2ec78c5c768972dda59283563eb9d.tar.gz |
metadata: introduce PV_EXT_USED flag and bump PV_HEADER_EXTENSION_VSN
-rw-r--r-- | lib/format_text/layout.h | 7 | ||||
-rw-r--r-- | lib/metadata/metadata-exported.h | 3 |
2 files changed, 9 insertions, 1 deletions
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 */ |