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 include/.symlinks lib/Makefil ...
Date: Thu, 17 Aug 2006 18:23:00 -0000	[thread overview]
Message-ID: <20060817182346.29863.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2006-08-17 18:23:44

Modified files:
	.              : WHATS_NEW 
	include        : .symlinks 
	lib            : Makefile.in 
	lib/config     : config.c 
	lib/device     : dev-io.c 
	lib/format_text: format-text.c layout.h 
	lib/metadata   : metadata.h 
	lib/misc       : lib.h 
	lib/mm         : memlock.c 
	tools          : lvconvert.c lvcreate.c 

Log message:
	Add lvm_getpagesize wrapper.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.419&r2=1.420
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/include/.symlinks.diff?cvsroot=lvm2&r1=1.42&r2=1.43
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/Makefile.in.diff?cvsroot=lvm2&r1=1.78&r2=1.79
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/config.c.diff?cvsroot=lvm2&r1=1.46&r2=1.47
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/device/dev-io.c.diff?cvsroot=lvm2&r1=1.53&r2=1.54
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/format-text.c.diff?cvsroot=lvm2&r1=1.62&r2=1.63
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/layout.h.diff?cvsroot=lvm2&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.h.diff?cvsroot=lvm2&r1=1.146&r2=1.147
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/lib.h.diff?cvsroot=lvm2&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/mm/memlock.c.diff?cvsroot=lvm2&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvcreate.c.diff?cvsroot=lvm2&r1=1.121&r2=1.122

--- LVM2/WHATS_NEW	2006/08/16 14:41:41	1.419
+++ LVM2/WHATS_NEW	2006/08/17 18:23:42	1.420
@@ -1,5 +1,6 @@
 Version 2.02.09 - 
 ==================================
+  Add lvm_getpagesize wrapper.
   Add --maxphysicalvolumes to vgchange.
 
 Version 2.02.08 - 15th August 2006
--- LVM2/include/.symlinks	2006/05/09 21:23:49	1.42
+++ LVM2/include/.symlinks	2006/08/17 18:23:42	1.43
@@ -41,6 +41,7 @@
 ../lib/misc/lvm-exec.h
 ../lib/misc/lvm-file.h
 ../lib/misc/lvm-string.h
+../lib/misc/lvm-wrappers.h
 ../lib/misc/sharedlib.h
 ../lib/regex/matcher.h
 ../lib/report/report.h
--- LVM2/lib/Makefile.in	2006/04/19 15:33:05	1.78
+++ LVM2/lib/Makefile.in	2006/08/17 18:23:42	1.79
@@ -78,6 +78,7 @@
 	misc/lvm-exec.c \
 	misc/lvm-file.c \
 	misc/lvm-string.c \
+	misc/lvm-wrappers.c \
 	mm/memlock.c \
 	regex/matcher.c \
 	regex/parse_rx.c \
--- LVM2/lib/config/config.c	2006/05/16 16:48:30	1.46
+++ LVM2/lib/config/config.c	2006/08/17 18:23:43	1.47
@@ -187,7 +187,7 @@
 		use_mmap = 0;
 
 	if (use_mmap) {
-		mmap_offset = offset % getpagesize();
+		mmap_offset = offset % lvm_getpagesize();
 		/* memory map the file */
 		p->fb = mmap((caddr_t) 0, size + mmap_offset, PROT_READ,
 			     MAP_PRIVATE, dev_fd(dev), offset - mmap_offset);
--- LVM2/lib/device/dev-io.c	2006/05/11 18:39:24	1.53
+++ LVM2/lib/device/dev-io.c	2006/08/17 18:23:43	1.54
@@ -176,7 +176,7 @@
 	}
 
 	if (!block_size)
-		block_size = getpagesize();
+		block_size = lvm_getpagesize();
 
 	_widen_region(block_size, where, &widened);
 
--- LVM2/lib/format_text/format-text.c	2006/05/16 16:48:30	1.62
+++ LVM2/lib/format_text/format-text.c	2006/08/17 18:23:43	1.63
@@ -1005,7 +1005,7 @@
 	uint64_t start1, mda_size1;	/* First area - start of disk */
 	uint64_t start2, mda_size2;	/* Second area - end of disk */
 	uint64_t wipe_size = 8 << SECTOR_SHIFT;
-	size_t pagesize = getpagesize();
+	size_t pagesize = lvm_getpagesize();
 
 	if (!pvmetadatacopies) {
 		/* Space available for PEs */
--- LVM2/lib/format_text/layout.h	2006/05/09 21:23:50	1.5
+++ LVM2/lib/format_text/layout.h	2006/08/17 18:23:43	1.6
@@ -83,6 +83,6 @@
 #define FMTT_VERSION 1
 #define MDA_HEADER_SIZE 512
 #define LVM2_LABEL "LVM2 001"
-#define MDA_SIZE_MIN (8 * (unsigned) getpagesize())
+#define MDA_SIZE_MIN (8 * (unsigned) lvm_getpagesize())
 
 #endif
--- LVM2/lib/metadata/metadata.h	2006/05/11 20:03:40	1.146
+++ LVM2/lib/metadata/metadata.h	2006/08/17 18:23:43	1.147
@@ -29,7 +29,7 @@
 #define MAX_STRIPES 128U
 #define SECTOR_SHIFT 9L
 #define SECTOR_SIZE ( 1L << SECTOR_SHIFT )
-#define STRIPE_SIZE_MIN ( (unsigned) getpagesize() >> SECTOR_SHIFT)	/* PAGESIZE in sectors */
+#define STRIPE_SIZE_MIN ( (unsigned) lvm_getpagesize() >> SECTOR_SHIFT)	/* PAGESIZE in sectors */
 #define STRIPE_SIZE_MAX ( 512L * 1024L >> SECTOR_SHIFT)	/* 512 KB in sectors */
 #define STRIPE_SIZE_LIMIT ((UINT_MAX >> 2) + 1)
 #define PV_MIN_SIZE ( 512L * 1024L >> SECTOR_SHIFT)	/* 512 KB in sectors */
--- LVM2/lib/misc/lib.h	2006/05/09 21:23:50	1.9
+++ LVM2/lib/misc/lib.h	2006/08/17 18:23:44	1.10
@@ -28,6 +28,7 @@
 #include "log.h"
 #include "intl.h"
 #include "lvm-types.h"
+#include "lvm-wrappers.h"
 
 #include <libdevmapper.h>
 
--- LVM2/lib/mm/memlock.c	2006/05/16 16:48:30	1.8
+++ LVM2/lib/mm/memlock.c	2006/08/17 18:23:44	1.9
@@ -58,7 +58,7 @@
 
 static void _touch_memory(void *mem, size_t size)
 {
-	size_t pagesize = getpagesize();
+	size_t pagesize = lvm_getpagesize();
 	void *pos = mem;
 	void *end = mem + size - sizeof(long);
 
--- LVM2/tools/lvconvert.c	2006/05/16 16:48:31	1.18
+++ LVM2/tools/lvconvert.c	2006/08/17 18:23:44	1.19
@@ -102,7 +102,7 @@
 			int argc, char **argv)
 {
 	int region_size;
-	int pagesize = getpagesize();
+	int pagesize = lvm_getpagesize();
 
 	memset(lp, 0, sizeof(*lp));
 
--- LVM2/tools/lvcreate.c	2006/05/24 13:58:14	1.121
+++ LVM2/tools/lvcreate.c	2006/08/17 18:23:44	1.122
@@ -249,7 +249,7 @@
 {
 	int argc = *pargc;
 	int region_size;
-	int pagesize = getpagesize();
+	int pagesize = lvm_getpagesize();
 
 	if (argc && (unsigned) argc < lp->mirrors) {
 		log_error("Too few physical volumes on "


             reply	other threads:[~2006-08-17 18:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17 18:23 agk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-11-03 19:00 agk
2007-07-20 15:48 meyering
2007-04-27 18:52 agk
2005-10-25 17:28 agk
2005-10-17 18:00 agk
2005-05-17 13:50 agk
2005-04-19 20:58 agk
2004-09-16 18:40 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=20060817182346.29863.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: link
Be 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).