[PATCH] fix pool format handler to work with pvseg code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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...

Tue Jul 26 14:27:36 CDT 2005  alewis@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;

Attachment: pgpsA6dUU09mj.pgp
Description: PGP signature

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux