]> sourceware.org Git - lvm2.git/commit
Replicator: add sorted cmd_vg list
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 May 2010 12:52:01 +0000 (12:52 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 21 May 2010 12:52:01 +0000 (12:52 +0000)
commit12569ccb034e58d80107e771148baffd6b6de6ae
tree98cdaa175344fa9f571a5c6c380106c79ab9a118
parent0a02d30ea4599076ecfbfffdbea69ab09435de4f
Replicator: add sorted cmd_vg list

Introduce struct cmd_vg to store information about needed
volume group name, vgid, flags and the pointer to opened VG.

Keep VGs list in alphabetical order for locking order.

Introduce functions:
cmd_vg_add() add new cmd_vg entry.
cmd_vg_lookup() search cmd_vgs for vg_name.
cmd_vg_read() open VGs in cmd_vgs list.
cmd_vg_release() close VGs in reversed order.
WHATS_NEW
lib/metadata/metadata-exported.h
lib/metadata/replicator_manip.c
This page took 0.037086 seconds and 5 git commands to generate.