1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

metadata: introduce PV_EXT_USED flag and bump PV_HEADER_EXTENSION_VSN

This commit is contained in:
Peter Rajnoha 2016-02-12 13:20:34 +01:00
parent a522af93b7
commit 54b41db9a6
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -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 */