mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
format: add FMT_PV_FLAGS to indicate format supports PV flags
This commit is contained in:
parent
4361543f3e
commit
a522af93b7
@ -2466,7 +2466,7 @@ struct format_type *create_text_format(struct cmd_context *cmd)
|
||||
fmt->features = FMT_SEGMENTS | FMT_MDAS | FMT_TAGS | FMT_PRECOMMIT |
|
||||
FMT_UNLIMITED_VOLS | FMT_RESIZE_PV |
|
||||
FMT_UNLIMITED_STRIPESIZE | FMT_BAS | FMT_CONFIG_PROFILE |
|
||||
FMT_NON_POWER2_EXTENTS;
|
||||
FMT_NON_POWER2_EXTENTS | FMT_PV_FLAGS;
|
||||
|
||||
if (!(mda_lists = dm_malloc(sizeof(struct mda_lists)))) {
|
||||
log_error("Failed to allocate dir_list");
|
||||
|
@ -150,6 +150,7 @@
|
||||
#define FMT_OBSOLETE 0x000001000U /* Obsolete format? */
|
||||
#define FMT_NON_POWER2_EXTENTS 0x000002000U /* Non-power-of-2 extent sizes? */
|
||||
#define FMT_SYSTEMID_ON_PVS 0x000004000U /* System ID is stored on PVs not VG */
|
||||
#define FMT_PV_FLAGS 0x000008000U /* Supports PV flags */
|
||||
|
||||
#define systemid_on_pvs(vg) ((vg)->fid->fmt->features & FMT_SYSTEMID_ON_PVS)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user