public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: snitzer@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2 lib/format_text/format-text.c ./WHATS_NEW
Date: Tue, 03 Aug 2010 18:19:00 -0000	[thread overview]
Message-ID: <20100803181944.1724.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	snitzer@sourceware.org	2010-08-03 18:19:43

Modified files:
	lib/format_text: format-text.c 
	.              : WHATS_NEW 

Log message:
	Avoid changing aligned pe_start as a side-effect of very verbose logging.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/format-text.c.diff?cvsroot=lvm2&r1=1.141&r2=1.142
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1693&r2=1.1694

--- LVM2/lib/format_text/format-text.c	2010/07/09 15:34:44	1.141
+++ LVM2/lib/format_text/format-text.c	2010/08/03 18:19:42	1.142
@@ -1498,7 +1498,7 @@
 				adjustment =
 				(pv->pe_start - pv->pe_align_offset) % pv->pe_align;
 				if (adjustment)
-					pv->pe_start += pv->pe_align - adjustment;
+					pv->pe_start += (pv->pe_align - adjustment);
 
 				log_very_verbose("%s: setting pe_start=%" PRIu64
 					 " (orig_pe_start=%" PRIu64 ", "
@@ -1506,7 +1506,7 @@
 					 "adjustment=%" PRIu64 ")",
 					 pv_dev_name(pv), pv->pe_start,
 					 (adjustment ?
-					  pv->pe_start -= pv->pe_align - adjustment :
+					  pv->pe_start - (pv->pe_align - adjustment) :
 					  pv->pe_start),
 					 pv->pe_align, pv->pe_align_offset, adjustment);
 			}
--- LVM2/WHATS_NEW	2010/08/03 13:24:07	1.1693
+++ LVM2/WHATS_NEW	2010/08/03 18:19:43	1.1694
@@ -1,5 +1,6 @@
 Version 2.02.73 - 
 ================================
+  Avoid changing aligned pe_start as a side-effect of very verbose logging.
   Fix 'void*' arithmetic warnings in dbg_malloc.c.
   Fix 'void*' arithmetic warning in some functions from libdm-iface.c.
   Fix const warning in dev_manager_info() and _dev_manager_lv_rmnodes().


             reply	other threads:[~2010-08-03 18:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03 18:19 snitzer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-06-22 19:18 wysochanski
2010-02-02 16:26 wysochanski

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=20100803181944.1724.qmail@sourceware.org \
    --to=snitzer@sourceware.org \
    --cc=lvm-devel@redhat.com \
    --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).