On Wed, Jun 22, 2005 at 09:46:27AM +0200, Bastian Blank wrote: > I got three reports that lvm 2.01.12 can't read lvm1 metadata. > > Bastian Hey Bastian - I'm seeing this too. The attached patch lets me scan and activate format1 volumes. This has not been tested extensively, so it may not be the correct fix, but it's something to get people going again. See if it fixes things for you - or the people you're getting reports from. Again - this is an experimental patch - please treat it with caution. Regards, -- AJ Lewis Voice: 612-638-0500 Red Hat Inc. 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...
? cscope.out Index: import-export.c =================================================================== RCS file: /cvs/lvm2/LVM2/lib/format1/import-export.c,v retrieving revision 1.76 diff -u -p -r1.76 import-export.c --- import-export.c 14 Jun 2005 17:54:47 -0000 1.76 +++ import-export.c 22 Jun 2005 14:53:36 -0000 @@ -241,7 +241,8 @@ int import_vg(struct pool *mem, vg->extent_size = vgd->pe_size; vg->extent_count = vgd->pe_total; - vg->free_count = vgd->pe_total - vgd->pe_allocated; + /* The free count is adjusted in pv_manip.c at assign_peg_to_lvseg */ + vg->free_count = vgd->pe_total; vg->max_lv = vgd->lv_max; vg->max_pv = vgd->pv_max; vg->alloc = ALLOC_NORMAL;
Attachment:
pgp30uMhMxFeI.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/