Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d1bcb21e02a33a03…
Commit: d1bcb21e02a33a03795c2e35bd4d16ea67107c5d
Parent: ce9a5cc25712907f05aa780d53d727b16f5dfd7c
Author: Jonathan Brassow <jbrassow(a)redhat.com>
AuthorDate: Mon Sep 16 15:37:48 2013 -0500
Committer: Jonathan Brassow <jbrassow(a)redhat.com>
CommitterDate: Mon Sep 16 15:37:48 2013 -0500
WHATS_NEW: Better description for commit 82228ac
More correct description of changes made to disallow thin+mirror.
---
WHATS_NEW | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 45e0050..29fb822 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -6,7 +6,8 @@ Version 2.02.101 -
Add man page entries for lvmdump's -u and -l options.
Fix lvm2app segfault while using lvm_list_pvs_free fn if there are no PVs.
Improve of clvmd singlenode locking simulation.
- Disallow thinpools on mirror logical volumes.
+ lvconvert no longer converts LVs of "mirror" segment type to thinpool.
+ lvconvert no longer converts thinpool sub-LVs to "mirror" segment type.
Direct udev to use 3min timeout for LVM devices. Recent udev has default 30s.
Do not scan multipath or RAID components and avoid incorrect autoactivation.
Fix MD/loop udev handling to fire autoactivation after setup or coldplug only.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ce9a5cc25712907f…
Commit: ce9a5cc25712907f05aa780d53d727b16f5dfd7c
Parent: 36c5bb40a27c7faac2a167df8c5cbd7c98c5168d
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Mon Sep 16 20:20:26 2013 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Mon Sep 16 20:20:26 2013 +0100
debug: Use // for commented out debug #defines
The traditional style used for optional editable definitions
/* #define X /* */
produces a bogus warning from gcc -Wall.
Rather than suppressing this with -Wno-comment, switch over to
the // comment style.
---
tools/toollib.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/toollib.c b/tools/toollib.c
index bccebb6..83789df 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -66,7 +66,7 @@ int become_daemon(struct cmd_context *cmd, int skip_lvm)
strerror(errno));
/* Set this to avoid discarding output from background process */
-/* #define DEBUG_CHILD */
+// #define DEBUG_CHILD
#ifndef DEBUG_CHILD
if ((null_fd = open(devnull, O_RDWR)) == -1) {
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=36c5bb40a27c7faa…
Commit: 36c5bb40a27c7faac2a167df8c5cbd7c98c5168d
Parent: 97ba18f4cbedbdf7933d30d719cf997bb06e7214
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Mon Sep 16 19:57:14 2013 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Mon Sep 16 19:57:14 2013 +0100
Makefiles: Fix CC variable override.
The CC override in commit f42b2d4bbf16345e5b5457f4298e751d5c134776
caused the built-in value to be used instead of the configured value
when it wasn't being overridden.
The behaviour is explained here:
http://stackoverflow.com/questions/18007326/how-to-change-default-values-of…
---
WHATS_NEW | 1 +
make.tmpl.in | 11 +++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index d51f08c..45e0050 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.101 -
===================================
+ Fix CC Makefile override which had reverted to using built-in value. (2.02.75)
Recognise bcache block devices in filter (experimental).
Run lvm2-activation-net after lvm2-activation service to prevent parallel run.
Add man page entries for lvmdump's -u and -l options.
diff --git a/make.tmpl.in b/make.tmpl.in
index 6992255..3218758 100644
--- a/make.tmpl.in
+++ b/make.tmpl.in
@@ -17,7 +17,18 @@ SHELL = /bin/sh
@SET_MAKE@
+# Allow environment to override any built-in default value for CC.
+# If there is a built-in default, CC is NOT set to @CC@ here.
CC ?= @CC@
+
+# If $(CC) holds the usual built-in default value of 'cc' then replace it with
+# the configured value.
+# (To avoid this and force the use of 'cc' from the environment, supply its
+# full path.)
+ifeq ($(CC), cc)
+ CC = @CC@
+endif
+
RANLIB = @RANLIB@
INSTALL = @INSTALL@
MKDIR_P = @MKDIR_P@
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=97ba18f4cbedbdf7…
Commit: 97ba18f4cbedbdf7933d30d719cf997bb06e7214
Parent: 10bc19ec1070d16d7367285856ebba7f99cf1996
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Mon Sep 16 16:56:55 2013 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Mon Sep 16 16:56:55 2013 +0100
filters: Add bcache.
N.B. Using bcache devices as PVs is still experimental.
Problems should be reported to the appropriate mailing lists.
---
WHATS_NEW | 8 +++-----
lib/device/device-types.h | 1 +
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 1c4925b..d51f08c 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.101 -
===================================
+ Recognise bcache block devices in filter (experimental).
Run lvm2-activation-net after lvm2-activation service to prevent parallel run.
Add man page entries for lvmdump's -u and -l options.
Fix lvm2app segfault while using lvm_list_pvs_free fn if there are no PVs.
@@ -14,19 +15,16 @@ Version 2.02.101 -
Fix dmeventd unmonitoring of thin pools.
Fix lvresize for stacked thin pool volumes (i.e. mirrors).
Write Completed debug message before reinstating log defaults after command.
- Skip pvmove of RAID, thin, snapshot, origin, or mirror LVs in a cluster.
Refresh existing VG before autoactivation (event retrigger/device reappeared).
Use pvscan -b in udev rules to avoid a deadlock on udev process count limit.
Add pvscan -b/--background for the command to be processed in the background.
Don't assume stdin file descriptor is readable.
Avoid unlimited recursion when creating dtree containing inactive pvmove LV.
Require exactly 3 arguments for lvm2-activation-generator. Remove defaults.
- Disable pvmove of merging or converting logical volumes.
- Enable pvmove of snapshots and snapshot origins.
- Fix inability to specify LV name when pvmove'ing a RAID, mirror, or thin-LV.
Inform lvmetad about any lost PV label to make it in sync with system state.
Support most of lvchange operations on stacked thin pool meta/data LVs.
- Add ability to pvmove RAID, mirror, and thin volumes.
+ Enable non-clustered pvmove of snapshots and snapshot origins.
+ Add ability to pvmove non-clustered RAID, mirror, and thin volumes.
Make lvm2-activation-generator silent unless it's in error state.
Remove "mpath major is not dm major" msg for mpath component scan (2.02.94).
Prevent cluster mirror logs from being corrupted by redundant checkpoints.
diff --git a/lib/device/device-types.h b/lib/device/device-types.h
index 48ae32a..d25c2f0 100644
--- a/lib/device/device-types.h
+++ b/lib/device/device-types.h
@@ -60,5 +60,6 @@ static const dev_known_type_t _dev_known_types[] = {
{"vtms", 16, "Violin Memory"},
{"skd", 16, "STEC"},
{"scm", 8, "Storage Class Memory (IBM S/390)"},
+ {"bcache", 1, "bcache block device cache"},
{"", 0, ""}
};
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=10bc19ec1070d16d…
Commit: 10bc19ec1070d16d7367285856ebba7f99cf1996
Parent: 61427af377891b011089b14154fe0c1d2845fd21
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Mon Sep 16 16:28:28 2013 +0200
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Mon Sep 16 16:29:33 2013 +0200
doc: add a note about device filtering while lvmetad is used
---
conf/example.conf.in | 12 ++++++++++++
man/pvscan.8.in | 3 ++-
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/conf/example.conf.in b/conf/example.conf.in
index b99f010..fb96079 100644
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
@@ -80,6 +80,8 @@ devices {
# the cache file gets regenerated (see below).
# If it doesn't do what you expect, check the output of 'vgscan -vvvv'.
+ # If lvmetad is used, then see "A note about device filtering while
+ # lvmetad is used" comment that is attached to global/use_lvmetad setting.
# By default we accept every block device:
filter = [ "a/.*/" ]
@@ -559,6 +561,16 @@ global {
# that appear in the system. Once the VG is complete (all the PVs are
# present), it is auto-activated. The activation/auto_activation_volume_list
# setting controls which volumes are auto-activated (all by default).
+ #
+ # A note about device filtering while lvmetad is used:
+ # When lvmetad is updated (either automatically based on udev events
+ # or directly by pvscan --cache <device> call), the devices/filter
+ # is ignored and all devices are scanned by default. The lvmetad always
+ # keeps unfiltered information which is then provided to LVM commands
+ # and then each LVM command does the filtering based on devices/filter
+ # setting itself.
+ # To prevent scanning devices completely, even when using lvmetad,
+ # the devices/global_filter must be used.
use_lvmetad = 0
# Full path of the utility called to check that a thin metadata device
diff --git a/man/pvscan.8.in b/man/pvscan.8.in
index 78ee3e2..211c82b 100644
--- a/man/pvscan.8.in
+++ b/man/pvscan.8.in
@@ -59,7 +59,8 @@ Run the command in the background.
Scan one or more devices and instruct the lvmetad daemon to update its cached
state accordingly. Called internally by udev rules.
All devices listed explicitly are processed \fBregardless\fP of any device
-filters set in lvm.conf.
+filters set using \fBdevices/filter\fP configuration setting. To filter
+devices even in this case, the \fBdevices/global_filter\fP must be used.
.SH SEE ALSO
.BR lvm (8),
.BR pvcreate (8),