mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Replicator: extend volume_group with list of VGs and flag
Add pointer to linked list of opened VGs. List temporarily keeps the information about needed or locked and opened VGs for replicator target. Also add cmd_missing_vgs flag information for quick check and also for possible continuos process_each_lv() usage where we need to detect whether failure has been caused by missing VG or some other reason.
This commit is contained in:
parent
e86e45f7ea
commit
0a02d30ea4
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
||||||
* Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
|
* Copyright (C) 2004-2010 Red Hat, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* This file is part of LVM2.
|
* This file is part of LVM2.
|
||||||
*
|
*
|
||||||
@ -223,6 +223,8 @@ struct volume_group {
|
|||||||
struct cmd_context *cmd;
|
struct cmd_context *cmd;
|
||||||
struct dm_pool *vgmem;
|
struct dm_pool *vgmem;
|
||||||
struct format_instance *fid;
|
struct format_instance *fid;
|
||||||
|
struct dm_list *cmd_vgs;/* List of wanted/locked and opened VGs */
|
||||||
|
uint32_t cmd_missing_vgs;/* Flag marks missing VG */
|
||||||
uint32_t seqno; /* Metadata sequence number */
|
uint32_t seqno; /* Metadata sequence number */
|
||||||
|
|
||||||
alloc_policy_t alloc;
|
alloc_policy_t alloc;
|
||||||
|
Loading…
Reference in New Issue
Block a user