master - metadata: introduce PV_EXT_USED flag and bump PV_HEADER_EXTENSION_VSN
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=54b41db9a6c2ec78c5c768972dda59283563eb9d Commit: 54b41db9a6c2ec78c5c768972dda59283563eb9d Parent: a522af93b7365d183fd7f82ac65cc7f3bed2423a Author: Peter Rajnoha <[email protected]> AuthorDate: Fri Feb 12 13:20:34 2016 +0100 Committer: Peter Rajnoha <[email protected]> CommitterDate: Mon Feb 15 12:44:46 2016 +0100
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 deletions(-)
lib/format_text/layout.h +6 -1
@@ -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 2struct pv_header_extension {uint32_t version;
lib/metadata/metadata-exported.h +3 -0
@@ -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 */