public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: agk@sourceware.org To: lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW lib/format1/disk-rep.h lib/fo ... Date: Thu, 17 Aug 2006 19:15:00 -0000 [thread overview] Message-ID: <20060817191528.13455.qmail@sourceware.org> (raw) 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);
next reply other threads:[~2006-08-17 19:15 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-08-17 19:15 agk [this message] -- strict thread matches above, loose matches on Subject: below -- 2006-10-19 12:53 agk 2006-05-04 9:33 agk
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20060817191528.13455.qmail@sourceware.org \ --to=agk@sourceware.org \ --cc=lvm2-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).