From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13474 invoked by alias); 17 Aug 2006 19:15:29 -0000 Received: (qmail 13457 invoked by uid 9447); 17 Aug 2006 19:15:28 -0000 Date: Thu, 17 Aug 2006 19:15:00 -0000 Message-ID: <20060817191528.13455.qmail@sourceware.org> From: agk@sourceware.org To: lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW lib/format1/disk-rep.h lib/fo ... Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00007.txt.bz2 List-Id: CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2006-08-17 19:15:27 Modified files: . : WHATS_NEW lib/format1 : disk-rep.h format1.c layout.c Log message: Separate out LVM1_PE_ALIGN. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.420&r2=1.421 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format1/disk-rep.h.diff?cvsroot=lvm2&r1=1.47&r2=1.48 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format1/format1.c.diff?cvsroot=lvm2&r1=1.97&r2=1.98 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format1/layout.c.diff?cvsroot=lvm2&r1=1.24&r2=1.25 --- LVM2/WHATS_NEW 2006/08/17 18:23:42 1.420 +++ LVM2/WHATS_NEW 2006/08/17 19:15:27 1.421 @@ -1,5 +1,6 @@ Version 2.02.09 - ================================== + Separate out LVM1_PE_ALIGN. Add lvm_getpagesize wrapper. Add --maxphysicalvolumes to vgchange. --- LVM2/lib/format1/disk-rep.h 2006/05/09 21:23:50 1.47 +++ LVM2/lib/format1/disk-rep.h 2006/08/17 19:15:27 1.48 @@ -172,6 +172,7 @@ * Layout constants. */ #define METADATA_ALIGN 4096UL +#define LVM1_PE_ALIGN (65536UL >> SECTOR_SHIFT) /* PE alignment */ #define METADATA_BASE 0UL #define PV_SIZE 1024UL --- LVM2/lib/format1/format1.c 2006/05/09 21:23:50 1.97 +++ LVM2/lib/format1/format1.c 2006/08/17 19:15:27 1.98 @@ -408,7 +408,7 @@ /* Ensure any residual PE structure is gone */ pv->pe_size = pv->pe_count = 0; - pv->pe_start = PE_ALIGN; + pv->pe_start = LVM1_PE_ALIGN; if (!(mem = dm_pool_create("lvm1 pv_write", 1024))) { stack; @@ -431,7 +431,7 @@ dev_write in order to make other disk tools happy */ dl->pvd.pv_on_disk.base = METADATA_BASE; dl->pvd.pv_on_disk.size = PV_SIZE; - dl->pvd.pe_on_disk.base = PE_ALIGN << SECTOR_SHIFT; + dl->pvd.pe_on_disk.base = LVM1_PE_ALIGN << SECTOR_SHIFT; list_add(&pvs, &dl->list); if (!write_disks(fmt, &pvs)) { --- LVM2/lib/format1/layout.c 2006/04/19 15:33:06 1.24 +++ LVM2/lib/format1/layout.c 2006/08/17 19:15:27 1.25 @@ -153,7 +153,7 @@ if (pe_start && end < pe_start) end = pe_start; - pvd->pe_start = _round_up(end, PE_ALIGN); + pvd->pe_start = _round_up(end, LVM1_PE_ALIGN); } while ((pvd->pe_start + (pvd->pe_total * extent_size)) > pv->size);