From: agk@sourceware.org <agk@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW lib/activate/dev_manager.c li ...
Date: 18 Oct 2006 18:01:54 -0000 [thread overview]
Message-ID: <20061018180154.14726.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2006-10-18 18:01:53
Modified files:
. : WHATS_NEW
lib/activate : dev_manager.c
lib/error : errseg.c
lib/metadata : mirror.c segtype.h
lib/mirror : mirrored.c
lib/snapshot : snapshot.c
lib/striped : striped.c
lib/zero : zero.c
tools : lvconvert.c lvcreate.c
Log message:
Add segment parameter to target_present functions.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.473&r2=1.474
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/dev_manager.c.diff?cvsroot=lvm2&r1=1.114&r2=1.115
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/error/errseg.c.diff?cvsroot=lvm2&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/mirror.c.diff?cvsroot=lvm2&r1=1.33&r2=1.34
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/segtype.h.diff?cvsroot=lvm2&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/mirror/mirrored.c.diff?cvsroot=lvm2&r1=1.36&r2=1.37
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/snapshot/snapshot.c.diff?cvsroot=lvm2&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/striped/striped.c.diff?cvsroot=lvm2&r1=1.19&r2=1.20
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/zero/zero.c.diff?cvsroot=lvm2&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.21&r2=1.22
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvcreate.c.diff?cvsroot=lvm2&r1=1.127&r2=1.128
--- LVM2/WHATS_NEW 2006/10/16 17:17:54 1.473
+++ LVM2/WHATS_NEW 2006/10/18 18:01:51 1.474
@@ -1,5 +1,6 @@
Version 2.02.13 -
===================================
+ Add segment parameter to target_present functions.
Version 2.02.12 - 16th October 2006
===================================
--- LVM2/lib/activate/dev_manager.c 2006/08/21 12:04:55 1.114
+++ LVM2/lib/activate/dev_manager.c 2006/10/18 18:01:51 1.115
@@ -785,7 +785,7 @@
/* Ensure required device-mapper targets are loaded */
if (seg->segtype->ops->target_present &&
- !seg->segtype->ops->target_present()) {
+ !seg->segtype->ops->target_present(seg)) {
log_error("Can't expand LV %s: %s target support missing "
"from kernel?", seg->lv->name, seg->segtype->name);
return 0;
--- LVM2/lib/error/errseg.c 2006/10/03 17:55:19 1.11
+++ LVM2/lib/error/errseg.c 2006/10/18 18:01:51 1.12
@@ -50,7 +50,7 @@
return dm_tree_node_add_error_target(node, len);
}
-static int _errseg_target_present(void)
+static int _errseg_target_present(const struct lv_segment *seg __attribute((unused)))
{
static int _errseg_checked = 0;
static int _errseg_present = 0;
--- LVM2/lib/metadata/mirror.c 2006/09/19 19:13:41 1.33
+++ LVM2/lib/metadata/mirror.c 2006/10/18 18:01:52 1.34
@@ -562,7 +562,7 @@
}
if (activation() && segtype->ops->target_present &&
- !segtype->ops->target_present()) {
+ !segtype->ops->target_present(NULL)) {
log_error("%s: Required device-mapper target(s) not "
"detected in your kernel", segtype->name);
return 0;
--- LVM2/lib/metadata/segtype.h 2006/10/03 17:55:19 1.13
+++ LVM2/lib/metadata/segtype.h 2006/10/18 18:01:52 1.14
@@ -76,7 +76,7 @@
struct lv_segment *seg, char *params,
uint64_t *total_numerator,
uint64_t *total_denominator, float *percent);
- int (*target_present) (void);
+ int (*target_present) (const struct lv_segment *seg);
int (*modules_needed) (struct dm_pool *mem,
const struct lv_segment *seg,
struct list *modules);
--- LVM2/lib/mirror/mirrored.c 2006/10/03 17:55:19 1.36
+++ LVM2/lib/mirror/mirrored.c 2006/10/18 18:01:52 1.37
@@ -336,7 +336,7 @@
return add_areas_line(dm, seg, node, start_area, area_count);
}
-static int _mirrored_target_present(void)
+static int _mirrored_target_present(const struct lv_segment *seg __attribute((unused)))
{
static int _mirrored_checked = 0;
static int _mirrored_present = 0;
--- LVM2/lib/snapshot/snapshot.c 2006/10/03 17:55:20 1.18
+++ LVM2/lib/snapshot/snapshot.c 2006/10/18 18:01:52 1.19
@@ -112,7 +112,7 @@
return 1;
}
-static int _snap_target_present(void)
+static int _snap_target_present(const struct lv_segment *seg __attribute((unused)))
{
static int _snap_checked = 0;
static int _snap_present = 0;
--- LVM2/lib/striped/striped.c 2006/10/03 18:02:06 1.19
+++ LVM2/lib/striped/striped.c 2006/10/18 18:01:52 1.20
@@ -174,7 +174,7 @@
return add_areas_line(dm, seg, node, 0u, seg->area_count);
}
-static int _striped_target_present(void)
+static int _striped_target_present(const struct lv_segment *seg __attribute((unused)))
{
static int _striped_checked = 0;
static int _striped_present = 0;
--- LVM2/lib/zero/zero.c 2006/10/03 17:55:20 1.10
+++ LVM2/lib/zero/zero.c 2006/10/18 18:01:52 1.11
@@ -49,7 +49,7 @@
return dm_tree_node_add_zero_target(node, len);
}
-static int _zero_target_present(void)
+static int _zero_target_present(const struct lv_segment *seg __attribute((unused)))
{
static int _zero_checked = 0;
static int _zero_present = 0;
--- LVM2/tools/lvconvert.c 2006/09/19 19:13:41 1.21
+++ LVM2/tools/lvconvert.c 2006/10/18 18:01:53 1.22
@@ -212,7 +212,7 @@
}
if (activation() && lp->segtype->ops->target_present &&
- !lp->segtype->ops->target_present()) {
+ !lp->segtype->ops->target_present(NULL)) {
log_error("%s: Required device-mapper target(s) not "
"detected in your kernel", lp->segtype->name);
return 0;
--- LVM2/tools/lvcreate.c 2006/10/16 16:47:56 1.127
+++ LVM2/tools/lvcreate.c 2006/10/18 18:01:53 1.128
@@ -386,7 +386,7 @@
}
if (activation() && lp->segtype->ops->target_present &&
- !lp->segtype->ops->target_present()) {
+ !lp->segtype->ops->target_present(NULL)) {
log_error("%s: Required device-mapper target(s) not "
"detected in your kernel", lp->segtype->name);
return 0;
next reply other threads:[~2006-10-18 18:01 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-18 18:01 agk [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-30 23:11 LVM2 ./WHATS_NEW lib/activate/dev_manager.c li agk
2007-05-15 14:42 mbroz
2008-01-30 13:19 agk
2008-04-10 17:09 wysochanski
2008-07-15 0:25 agk
2009-10-22 13:00 prajnoha
2009-10-26 10:02 agk
2010-01-15 16:35 snitzer
2010-02-17 22:59 snitzer
2010-04-23 14:16 prajnoha
2010-10-13 21:26 snitzer
2011-08-18 19:38 jbrassow
2011-10-06 14:45 jbrassow
2011-10-14 13:23 zkabelac
2012-01-20 22:02 snitzer
2012-03-05 15:05 zkabelac
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=20061018180154.14726.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.