fix pool format handler to work with pvseg code
PATCH 1/1 fix pool format handler to work with pvseg code
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.
Signature · 8 lines
AJ Lewis Voice: 612-638-0500 Red Hat E-Mail: [email protected] 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...
Tue Jul 26 14:27:36 CDT 2005 [email protected]
* Fix format pool handler to work with new pv segment code
lib/format_pool/import_export.c +1 -1
@@ -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 ;