From: Zdenek Kabelac Date: Fri, 21 May 2010 12:47:46 +0000 (+0000) Subject: Replicator: extend volume_group with list of VGs and flag X-Git-Tag: old-v2_02_67~42 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=5f860775c8b60136e3a1f1fd6fabc57a0157644e;p=lvm2.git 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. --- diff --git a/lib/metadata/metadata-exported.h b/lib/metadata/metadata-exported.h index 3c9e1bb7d..a00c48a97 100644 --- a/lib/metadata/metadata-exported.h +++ b/lib/metadata/metadata-exported.h @@ -1,6 +1,6 @@ /* * 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. * @@ -223,6 +223,8 @@ struct volume_group { struct cmd_context *cmd; struct dm_pool *vgmem; 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 */ alloc_policy_t alloc;