[linux-lvm] [PATCH] fix pool format handler to work with pvseg code
AJ Lewis
alewis at redhat.com
Tue Jul 26 19:52:50 UTC 2005
Here's a very small patch that allows the pool format handler to work properly
with the pv segment code. It's a similar fix to the one that was necessary
for the format1 handler.
--
AJ Lewis Voice: 612-638-0500
Red Hat E-Mail: alewis at redhat.com
One Main Street SE, Suite 209
Minneapolis, MN 55414
Current GPG fingerprint = D9F8 EDCE 4242 855F A03D 9B63 F50C 54A8 578C 8715
Grab the key at: http://people.redhat.com/alewis/gpg.html or one of the
many keyservers out there...
-------------- next part --------------
Tue Jul 26 14:27:36 CDT 2005 alewis at redhat.com
* Fix format pool handler to work with new pv segment code
diff -rN -u old-LVM2-cvs-testing/lib/format_pool/import_export.c new-LVM2-cvs-testing/lib/format_pool/import_export.c
--- old-LVM2-cvs-testing/lib/format_pool/import_export.c 2005-07-26 14:51:40.000000000 -0500
+++ new-LVM2-cvs-testing/lib/format_pool/import_export.c 2005-07-26 14:27:27.000000000 -0500
@@ -45,7 +45,7 @@
get_pool_vg_uuid(&vg->id, &pl->pd);
vg->extent_size = POOL_PE_SIZE;
vg->status |= LVM_READ | LVM_WRITE | CLUSTERED | SHARED;
- vg->free_count = 0;
+ vg->free_count = vg->extent_count;
vg->max_lv = 1;
vg->max_pv = POOL_MAX_DEVICES;
vg->alloc = ALLOC_NORMAL;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20050726/c55bc67f/attachment.sig>
More information about the linux-lvm
mailing list