]> sourceware.org Git - lvm2.git/commitdiff
Replicator: extend volume_group with list of VGs and flag
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 May 2010 12:47:46 +0000 (12:47 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 May 2010 12:47:46 +0000 (12:47 +0000)
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.

lib/metadata/metadata-exported.h

index 3c9e1bb7d6cd6a1fac443922faca706d238cac75..a00c48a975a73495a189ba65745163ba6166f59b 100644 (file)
@@ -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;
This page took 0.038224 seconds and 5 git commands to generate.