From: agk@sourceware.org <agk@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW lib/activate/dev_manager.c li ...
Date: 15 Jul 2008 00:25:52 -0000 [thread overview]
Message-ID: <20080715002552.29343.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2008-07-15 00:25:52
Modified files:
. : WHATS_NEW
lib/activate : dev_manager.c
lib/metadata : segtype.h
lib/mirror : mirrored.c
lib/snapshot : snapshot.c
Log message:
Cease recognising snapshot-in-use percentages returned by early development kernels.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.928&r2=1.929
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/dev_manager.c.diff?cvsroot=lvm2&r1=1.138&r2=1.139
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/segtype.h.diff?cvsroot=lvm2&r1=1.20&r2=1.21
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/mirror/mirrored.c.diff?cvsroot=lvm2&r1=1.55&r2=1.56
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/snapshot/snapshot.c.diff?cvsroot=lvm2&r1=1.30&r2=1.31
--- LVM2/WHATS_NEW 2008/07/10 11:30:57 1.928
+++ LVM2/WHATS_NEW 2008/07/15 00:25:51 1.929
@@ -1,6 +1,7 @@
Version 2.02.40 -
================================
- Add "flags" metadata field (akin to "status") for backward-compatible flags.
+ Cease recognising snapshot-in-use percentages returned by early devt kernels.
+ Add backward-compatible flags field to on-disk format_text metadata.
Fix dmeventd monitoring libraries to link against liblvm2cmd again. (2.02.39)
Version 2.02.39 - 27th June 2008
--- LVM2/lib/activate/dev_manager.c 2008/06/18 11:32:14 1.138
+++ LVM2/lib/activate/dev_manager.c 2008/07/15 00:25:51 1.139
@@ -379,8 +379,7 @@
!segtype->ops->target_percent(&dm->target_state, dm->mem,
dm->cmd, seg, params,
&total_numerator,
- &total_denominator,
- percent))
+ &total_denominator))
goto_out;
} while (next);
@@ -393,7 +392,7 @@
if (total_denominator)
*percent = (float) total_numerator *100 / total_denominator;
- else if (*percent < 0)
+ else
*percent = 100;
log_debug("LV percent: %f", *percent);
--- LVM2/lib/metadata/segtype.h 2008/06/25 16:52:26 1.20
+++ LVM2/lib/metadata/segtype.h 2008/07/15 00:25:51 1.21
@@ -77,7 +77,7 @@
struct cmd_context *cmd,
struct lv_segment *seg, char *params,
uint64_t *total_numerator,
- uint64_t *total_denominator, float *percent);
+ uint64_t *total_denominator);
int (*target_present) (const struct lv_segment *seg,
unsigned *attributes);
int (*modules_needed) (struct dm_pool *mem,
--- LVM2/lib/mirror/mirrored.c 2008/04/10 18:53:36 1.55
+++ LVM2/lib/mirror/mirrored.c 2008/07/15 00:25:51 1.56
@@ -176,8 +176,7 @@
static int _mirrored_target_percent(void **target_state, struct dm_pool *mem,
struct cmd_context *cmd, struct lv_segment *seg,
char *params, uint64_t *total_numerator,
- uint64_t *total_denominator,
- float *percent __attribute((unused)))
+ uint64_t *total_denominator)
{
struct mirror_state *mirr_state;
uint64_t numerator, denominator;
--- LVM2/lib/snapshot/snapshot.c 2008/04/07 10:23:47 1.30
+++ LVM2/lib/snapshot/snapshot.c 2008/07/15 00:25:52 1.31
@@ -95,20 +95,14 @@
struct cmd_context *cmd __attribute((unused)),
struct lv_segment *seg __attribute((unused)),
char *params, uint64_t *total_numerator,
- uint64_t *total_denominator, float *percent)
+ uint64_t *total_denominator)
{
- float percent2;
uint64_t numerator, denominator;
- if (strchr(params, '/')) {
- if (sscanf(params, "%" PRIu64 "/%" PRIu64,
- &numerator, &denominator) == 2) {
- *total_numerator += numerator;
- *total_denominator += denominator;
- }
- } else if (sscanf(params, "%f", &percent2) == 1) {
- *percent += percent2;
- *percent /= 2;
+ if (sscanf(params, "%" PRIu64 "/%" PRIu64,
+ &numerator, &denominator) == 2) {
+ *total_numerator += numerator;
+ *total_denominator += denominator;
}
return 1;
next reply other threads:[~2008-07-15 0:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 0:25 agk [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-03-05 15:05 LVM2 ./WHATS_NEW lib/activate/dev_manager.c li zkabelac
2012-01-20 22:02 snitzer
2011-10-14 13:23 zkabelac
2011-10-06 14:45 jbrassow
2011-08-18 19:38 jbrassow
2010-10-13 21:26 snitzer
2010-04-23 14:16 prajnoha
2010-02-17 22:59 snitzer
2010-01-15 16:35 snitzer
2009-10-26 10:02 agk
2009-10-22 13:00 prajnoha
2008-04-10 17:09 wysochanski
2008-01-30 13:19 agk
2007-05-15 14:42 mbroz
2006-11-30 23:11 agk
2006-10-18 18:01 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=20080715002552.29343.qmail@sourceware.org \
--to=agk@sourceware.org \
--cc=lvm-devel@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.