Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fc37d4fb0dfc47c4…
Commit: fc37d4fb0dfc47c49b8acdc773a4ad67d59b51b8
Parent: 6c6bcc00e401262db3b906259674a3231a119603
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Dec 4 12:35:02 2013 +0100
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Wed Dec 4 13:30:08 2013 +0100
make: support per-object defines
In the case we have a dir with multiple objects and for
an individual object file we need special define -
allow to define it without adding extra rules.
To ensure dmeventd.o compilation will use EXTRA_FLAGS:
CFLAGS_dmeventd.o += $(EXTRA_FLAGS)
Then it's better to use:
dmeventd.o: CFLAGS += $(EXTRA_FLAGS)
---
WHATS_NEW | 1 +
make.tmpl.in | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 9155ddf..d512ab5 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.105 -
=====================================
+ Support per-object compilation cflags via CFLAGS_object.o.
Automatically detect support for compiler/linker options to use RELRO and PIE.
Add --splitsnapshot to lvconvert to separate out cow LV.
Reinstate origin reload to complete lvconvert -s with active LVs. (2.02.98)
diff --git a/make.tmpl.in b/make.tmpl.in
index 35a47be..944be9b 100644
--- a/make.tmpl.in
+++ b/make.tmpl.in
@@ -345,7 +345,7 @@ endif
$(TARGETS): $(OBJECTS)
%.o: %.c
- $(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CFLAGS) $< -o $@
+ $(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
%.pot: %.c Makefile
$(CC) -E $(INCLUDES) -include $(top_srcdir)/include/pogen.h \
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=163666e513848e5d…
Commit: 163666e513848e5d43d3e4f2f91b42d1a8f483a0
Parent: 7b65363bf781cd58d45e2d9f12fdfed59b9dee55
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Wed Dec 4 09:37:32 2013 +0100
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Wed Dec 4 09:38:00 2013 +0100
tests: one LV should be active and one inactive in covercmd test
---
test/shell/covercmd.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/shell/covercmd.sh b/test/shell/covercmd.sh
index 59500d6..7a24a9c 100644
--- a/test/shell/covercmd.sh
+++ b/test/shell/covercmd.sh
@@ -112,7 +112,7 @@ lvcreate -l1 $vg1
# at least one LV active - VG considered active
vgcreate $vg2 $dev2
lvcreate -l1 $vg2
-lvcreate -l1 $vg2
+lvcreate -l1 -an -Zn $vg2
# no LVs active - VG considered inactive
vgcreate $vg3 $dev3
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ff769ecfe7cdd704…
Commit: ff769ecfe7cdd704ee1e11aa9b6b7a92f932a0c1
Parent: 6232cac86cea332efb1e538fc8cd1922dc35bd01
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Wed Dec 4 02:04:29 2013 +0000
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Wed Dec 4 02:04:29 2013 +0000
lvconvert: Fix reload after snapshot conversion.
At the end of lvconvert --snapshot with an active origin, the origin
gets reloaded.
Commit 57c0f72b1d0349382c226c2b5614489b59db99e8 ("lvconvert: use
_reload_lv on more places") accidentally replaced this with a snapshot
LV reload (which does nothing because only the origin is active).
---
WHATS_NEW | 1 +
tools/lvconvert.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index c91acff..c96acce 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.105 -
=====================================
+ Reinstate origin reload to complete lvconvert -s with active LVs. (2.02.98)
Select only active volume groups if vgdisplay -A is used.
Add -p and LVM_LVMETAD_PID env var to lvmetad to change pid file.
Allow lvmetad to reuse stale socket.
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index 6f81356..b040e33 100644
--- a/tools/lvconvert.c
+++ b/tools/lvconvert.c
@@ -1864,7 +1864,7 @@ static int lvconvert_snapshot(struct cmd_context *cmd,
}
/* store vg on disk(s) */
- if (!_reload_lv(cmd, lv->vg, lv))
+ if (!_reload_lv(cmd, lv->vg, org))
return_0;
log_print_unless_silent("Logical volume %s converted to snapshot.", lv->name);
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=6232cac86cea332e…
Commit: 6232cac86cea332efb1e538fc8cd1922dc35bd01
Parent: c35394959758ec17389529f95a33bf7f5b15c56b
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Tue Dec 3 14:41:25 2013 +0100
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Tue Dec 3 14:43:00 2013 +0100
vgdisplay: select only active volumes groups if -A option is used
Where "active" means "at least one LV is active in the volume group".
---
WHATS_NEW | 1 +
man/vgdisplay.8.in | 3 ++-
test/shell/covercmd.sh | 22 ++++++++++++++++++++++
tools/vgdisplay.c | 4 +++-
4 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 043b7ef..c91acff 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.105 -
=====================================
+ Select only active volume groups if vgdisplay -A is used.
Add -p and LVM_LVMETAD_PID env var to lvmetad to change pid file.
Allow lvmetad to reuse stale socket.
Only unlink lvmetad socket on error if created by the same process.
diff --git a/man/vgdisplay.8.in b/man/vgdisplay.8.in
index 9016a45..4dada16 100644
--- a/man/vgdisplay.8.in
+++ b/man/vgdisplay.8.in
@@ -57,7 +57,8 @@ See \fBlvm\fP(8) for common options and \fBvgs\fP(8) for options given with
\fB\-\-columns\fP.
.TP
.BR \-A ", " \-\-activevolumegroups
-Only select the active volume groups.
+Only select the active volume groups. The volume group is considered active
+if at least one of its logical volumes is active.
.TP
.BR \-c ", " \-\-colon
Generate colon separated output for easier parsing in scripts or programs.
diff --git a/test/shell/covercmd.sh b/test/shell/covercmd.sh
index 04074c1..59500d6 100644
--- a/test/shell/covercmd.sh
+++ b/test/shell/covercmd.sh
@@ -100,3 +100,25 @@ not lvmchange
not lvrename $vg
not lvrename $vg-xxx
not lvrename $vg $vg/$lv-rename $vg/$lv
+
+#test vgdisplay -A to select only active VGs
+# all LVs active - VG considered active
+pvcreate -f $dev1 $dev2 $dev3
+
+vgcreate $vg1 $dev1
+lvcreate -l1 $vg1
+lvcreate -l1 $vg1
+
+# at least one LV active - VG considered active
+vgcreate $vg2 $dev2
+lvcreate -l1 $vg2
+lvcreate -l1 $vg2
+
+# no LVs active - VG considered inactive
+vgcreate $vg3 $dev3
+lvcreate -l1 -an -Zn $vg3
+lvcreate -l1 -an -Zn $vg3
+
+vgdisplay -s -A | grep $vg1
+vgdisplay -s -A | grep $vg2
+vgdisplay -s -A | not grep $vg3
diff --git a/tools/vgdisplay.c b/tools/vgdisplay.c
index afc92fe..81ffbd9 100644
--- a/tools/vgdisplay.c
+++ b/tools/vgdisplay.c
@@ -19,7 +19,9 @@ static int vgdisplay_single(struct cmd_context *cmd, const char *vg_name,
struct volume_group *vg,
void *handle __attribute__((unused)))
{
- /* FIXME Do the active check here if activevolumegroups_ARG ? */
+ if (arg_count(cmd, activevolumegroups_ARG) && !lvs_in_vg_activated(vg))
+ return ECMD_PROCESSED;
+
vg_check_status(vg, EXPORTED_VG);
if (arg_count(cmd, colon_ARG)) {