master - pre-release
by Alasdair Kergon
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=829727696700ac...
Commit: 829727696700ac509e8e89f669245947e830c8f6
Parent: 2ff893cd854733de0c9e82edc9e57f55c3d9ce7a
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Mon Aug 15 13:01:27 2016 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Mon Aug 15 13:17:47 2016 +0100
pre-release
---
VERSION | 2 +-
VERSION_DM | 2 +-
WHATS_NEW | 5 ++++-
WHATS_NEW_DM | 3 ---
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/VERSION b/VERSION
index 5e46ebc..cce77c2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.02.164(2)-git (2016-08-10)
+2.02.164(2)-git (2016-08-15)
diff --git a/VERSION_DM b/VERSION_DM
index a5de990..b07196b 100644
--- a/VERSION_DM
+++ b/VERSION_DM
@@ -1 +1 @@
-1.02.134-git (2016-08-10)
+1.02.133-git (2016-08-15)
diff --git a/WHATS_NEW b/WHATS_NEW
index 425729a..61ae56d 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,8 @@
-Version 2.02.164 -
+Version 2.02.164 - 15th August 2016
===================================
+ Fix selection of PVs when allocating raid0_meta.
+ Fix sdbus socket leak leading to hang in lvmnotify.
+ Specify max stripes for raid LV types: raid0:64; 1:10; 4,5:63; 6:62; 10:32.
Avoid double suffix when naming _rmeta LV paired with _rimage LV.
Version 2.02.163 - 10th August 2016
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 7bbfd88..2b32d76 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,6 +1,3 @@
-Version 1.02.134 -
-===================================
-
Version 1.02.133 - 10th August 2016
===================================
Add dm_report_destroy_rows/dm_report_group_output_and_pop_all for lvm shell.
7 years, 9 months
master - conf: add comment about cfg_runtime
by Peter Rajnoha
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2ff893cd854733...
Commit: 2ff893cd854733de0c9e82edc9e57f55c3d9ce7a
Parent: 9c9b9b276a35dcc6dce8e6a19e7afc01eef451a7
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Mon Aug 15 10:38:38 2016 +0200
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Mon Aug 15 10:38:38 2016 +0200
conf: add comment about cfg_runtime
---
lib/config/config_settings.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
index 1084224..fa6a01e 100644
--- a/lib/config/config_settings.h
+++ b/lib/config/config_settings.h
@@ -23,6 +23,11 @@
* - define a configuration array of one or more types:
* cfg_array(id, name, parent, flags, types, default_value, since_version, unconfigured_default_value, deprecated_since_version, deprecation_comment, comment)
*
+ * - define a configuration setting where the default value is evaluated in runtime
+ * cfg_runtime(id, name, parent, flags, type, since_version, deprecated_since_version, deprecation_comment, comment)
+ * (for each cfg_runtime, you need to define 'get_default_<name>(struct cmd_context *cmd, struct profile *profile)' function
+ * to get the default value in runtime - usually, these functions are placed in config.[ch] file)
+ *
*
* If default value can't be assigned statically because it depends on some
* run-time checks or if it depends on other settings already defined,
7 years, 9 months
master - raid_manip: pay attention to PVs listed on command line when allocating MetaLVs
by Heinz Mauelshagen
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9c9b9b276a35dc...
Commit: 9c9b9b276a35dcc6dce8e6a19e7afc01eef451a7
Parent: 6d52b17dfcbbbc19d4fee1ba117448bed3759ba8
Author: Heinz Mauelshagen <heinzm(a)redhat.com>
AuthorDate: Sat Aug 13 00:20:01 2016 +0200
Committer: Heinz Mauelshagen <heinzm(a)redhat.com>
CommitterDate: Sat Aug 13 00:20:01 2016 +0200
raid_manip: pay attention to PVs listed on command line when allocating MetaLVs
Adding MetaLVs to given DataLVs (e.g. raid0 -> raid0_meta takeover) wasn't
paying attention to any PVs listed on the lvconvert command line.
---
lib/metadata/raid_manip.c | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c
index 831b1dd..a7814a8 100644
--- a/lib/metadata/raid_manip.c
+++ b/lib/metadata/raid_manip.c
@@ -1604,10 +1604,21 @@ static int _alloc_rmeta_devs_for_rimage_devs(struct logical_volume *lv,
dm_list_iterate_items(lvl, new_data_lvs) {
log_debug_metadata("Allocating new metadata LV for %s", lvl->lv->name);
- if (!_alloc_rmeta_for_lv(lvl->lv, &lvl_array[a].lv, allocate_pvs)) {
- log_error("Failed to allocate metadata LV for %s in %s",
- lvl->lv->name, lv->vg->name);
- return 0;
+ /*
+ * Try to collocate with DataLV first and
+ * if that fails allocate on different PV.
+ */
+ if (!_alloc_rmeta_for_lv(lvl->lv, &lvl_array[a].lv,
+ allocate_pvs != &lv->vg->pvs ? allocate_pvs : NULL)) {
+ dm_list_iterate_items(lvl1, new_meta_lvs)
+ if (!_avoid_pvs_with_other_images_of_lv(lvl1->lv, allocate_pvs))
+ return_0;
+
+ if (!_alloc_rmeta_for_lv(lvl->lv, &lvl_array[a].lv, allocate_pvs)) {
+ log_error("Failed to allocate metadata LV for %s in %s",
+ lvl->lv->name, lv->vg->name);
+ return 0;
+ }
}
dm_list_add(new_meta_lvs, &lvl_array[a++].list);
7 years, 9 months
master - raid_manip: add missing code avoiding MetaLV collocation on the same PV
by Heinz Mauelshagen
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=6d52b17dfcbbbc...
Commit: 6d52b17dfcbbbc19d4fee1ba117448bed3759ba8
Parent: 0973d6e3314cc0f0ff1e5024feb131c2187d97f2
Author: Heinz Mauelshagen <heinzm(a)redhat.com>
AuthorDate: Fri Aug 12 22:46:57 2016 +0200
Committer: Heinz Mauelshagen <heinzm(a)redhat.com>
CommitterDate: Fri Aug 12 22:46:57 2016 +0200
raid_manip: add missing code avoiding MetaLV collocation on the same PV
Adding MetaLVs to given DataLVs (e.g. raid0 -> raid0_meta takeover),
_avoid_pvs_with_other_images_of_lv() was missing code to prohibit
allocation when called with a just allocated MetaLV to prohibit
collaocation of the next allocated MetaLV on the same PV.
- resolves rhbz1366738
---
lib/metadata/raid_manip.c | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c
index ce560fe..831b1dd 100644
--- a/lib/metadata/raid_manip.c
+++ b/lib/metadata/raid_manip.c
@@ -176,14 +176,22 @@ static int _activate_sublv_preserving_excl(struct logical_volume *top_lv,
return 1;
}
+/* HM Helper: prohibit allocation on @pv if @lv already has segments allocated on it */
+static int _avoid_pv_of_lv(struct logical_volume *lv, struct physical_volume *pv)
+{
+ if (!lv_is_partial(lv) && lv_is_on_pv(lv, pv))
+ pv->status |= PV_ALLOCATION_PROHIBITED;
+
+ return 1;
+}
+
static int _avoid_pvs_of_lv(struct logical_volume *lv, void *data)
{
struct dm_list *allocate_pvs = (struct dm_list *) data;
struct pv_list *pvl;
dm_list_iterate_items(pvl, allocate_pvs)
- if (!lv_is_partial(lv) && lv_is_on_pv(lv, pvl->pv))
- pvl->pv->status |= PV_ALLOCATION_PROHIBITED;
+ _avoid_pv_of_lv(lv, pvl->pv);
return 1;
}
@@ -195,7 +203,15 @@ static int _avoid_pvs_of_lv(struct logical_volume *lv, void *data)
*/
static int _avoid_pvs_with_other_images_of_lv(struct logical_volume *lv, struct dm_list *allocate_pvs)
{
- return for_each_sub_lv(lv, _avoid_pvs_of_lv, allocate_pvs);
+ /* HM FIXME: check fails in case we will ever have mixed AREA_PV/AREA_LV segments */
+ if ((seg_type(first_seg(lv), 0) == AREA_PV ? _avoid_pvs_of_lv(lv, allocate_pvs):
+ for_each_sub_lv(lv, _avoid_pvs_of_lv, allocate_pvs)))
+ return 1;
+
+ log_error("Failed to prevent PVs holding image components "
+ "from LV %s being used for allocation.",
+ display_lvname(lv));
+ return 0;
}
static void _clear_allocation_prohibited(struct dm_list *pvs)
@@ -1595,7 +1611,7 @@ static int _alloc_rmeta_devs_for_rimage_devs(struct logical_volume *lv,
}
dm_list_add(new_meta_lvs, &lvl_array[a++].list);
-
+
dm_list_iterate_items(lvl1, new_meta_lvs)
if (!_avoid_pvs_with_other_images_of_lv(lvl1->lv, allocate_pvs))
return_0;
7 years, 9 months
master - notify: Fix hang with lvm shell & --enable-notify-dbus
by tasleson
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0973d6e3314cc0...
Commit: 0973d6e3314cc0f0ff1e5024feb131c2187d97f2
Parent: a185a2bea27db7cbd8b19df1bb85307fc5c246eb
Author: Tony Asleson <tasleson(a)redhat.com>
AuthorDate: Fri Aug 12 14:31:06 2016 -0500
Committer: Tony Asleson <tasleson(a)redhat.com>
CommitterDate: Fri Aug 12 14:36:43 2016 -0500
notify: Fix hang with lvm shell & --enable-notify-dbus
When lvm is compiled with --enable-notify-dbus and a user uses lvm
shell, after they issue 200+ commands the lvm shell will hang for
~30 seconds trying to notify the lvm dbus service that a change
has occurred. This appears to be caused by resource exhaustion,
because the sockets used for dbus communication are not be closed.
---
lib/notify/lvmnotify.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/notify/lvmnotify.c b/lib/notify/lvmnotify.c
index afad93b..e9f8e29 100644
--- a/lib/notify/lvmnotify.c
+++ b/lib/notify/lvmnotify.c
@@ -73,7 +73,7 @@ void lvmnotify_send(struct cmd_context *cmd)
out:
sd_bus_error_free(&error);
sd_bus_message_unref(m);
- sd_bus_unref(bus);
+ sd_bus_flush_close_unref(bus);
}
void set_vg_notify(struct cmd_context *cmd)
7 years, 9 months
master - lvcreate/lvconvert: fix validation of maximum mirrors/stripes
by Heinz Mauelshagen
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a185a2bea27db7...
Commit: a185a2bea27db7cbd8b19df1bb85307fc5c246eb
Parent: 93b61c07eb14f6185c708bd74f7e471b50cf251b
Author: Heinz Mauelshagen <heinzm(a)redhat.com>
AuthorDate: Fri Aug 12 19:14:28 2016 +0200
Committer: Heinz Mauelshagen <heinzm(a)redhat.com>
CommitterDate: Fri Aug 12 19:14:28 2016 +0200
lvcreate/lvconvert: fix validation of maximum mirrors/stripes
Enforce mirror/raid0/1/10/4/5/6 type specific maximum images when
creating LVs or converting them from mirror <-> raid1.
Document those maxima in the lvcreate/lvconvert man pages.
- resolves rhbz1366060
---
lib/config/defaults.h | 9 +++++++--
lib/metadata/merge.c | 13 ++++++++++---
man/lvconvert.8.in | 2 ++
man/lvcreate.8.in | 11 +++++++++--
tools/lvconvert.c | 5 +++++
tools/lvcreate.c | 32 ++++++++++++++++++++++++++++----
6 files changed, 61 insertions(+), 11 deletions(-)
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index f1f1700..c6efcdc 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -66,8 +66,13 @@
#define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate"
#define DEFAULT_MIRROR_IMAGE_FAULT_POLICY "remove"
#define DEFAULT_MIRROR_MAX_IMAGES 8 /* limited by kernel DM_KCOPYD_MAX_REGIONS */
-// FIXME Increase this to 64
-#define DEFAULT_RAID_MAX_IMAGES 8 /* limited by kernel failed devices bitfield in superblock (raid4/5/6 max 253) */
+/* Limited by kernel failed devices bitfield in superblock (raid4/5/6 MD max 253) */
+/*
+ * FIXME: Increase these to 64 and further to the MD maximum
+ * once the SubLVs split and name shift got enhanced
+ */
+#define DEFAULT_RAID1_MAX_IMAGES 10
+#define DEFAULT_RAID_MAX_IMAGES 64
#define DEFAULT_ALLOCATION_STRIPE_ALL_DEVICES 0 /* Don't stripe across all devices if not -i/--stripes given */
#define DEFAULT_RAID_FAULT_POLICY "warn"
diff --git a/lib/metadata/merge.c b/lib/metadata/merge.c
index ce33e28..bf0d2c0 100644
--- a/lib/metadata/merge.c
+++ b/lib/metadata/merge.c
@@ -261,10 +261,17 @@ static void _check_raid_seg(struct lv_segment *seg, int *error_count)
if (seg->extents_copied > seg->area_len)
raid_seg_error_val("extents_copied too large", seg->extents_copied);
- /* Default still 8, change! */
- if (seg->area_count > DEFAULT_RAID_MAX_IMAGES) {
+ /* Default < 10, change once raid1 split shift and rename SubLVs works! */
+ if (seg_is_raid1(seg)) {
+ if (seg->area_count > DEFAULT_RAID1_MAX_IMAGES) {
+ log_error("LV %s invalid: maximum supported areas %u (is %u) for %s segment",
+ seg->lv->name, DEFAULT_RAID1_MAX_IMAGES, seg->area_count, lvseg_name(seg));
+ if ((*error_count)++ > ERROR_MAX)
+ return;
+ }
+ } else if (seg->area_count > DEFAULT_RAID_MAX_IMAGES) {
log_error("LV %s invalid: maximum supported areas %u (is %u) for %s segment",
- seg->lv->name, DEFAULT_RAID_MAX_IMAGES, seg->area_count, lvseg_name(seg));
+ seg->lv->name, DEFAULT_RAID_MAX_IMAGES, seg->area_count, lvseg_name(seg));
if ((*error_count)++ > ERROR_MAX)
return;
}
diff --git a/man/lvconvert.8.in b/man/lvconvert.8.in
index 641e850..4f4d05e 100644
--- a/man/lvconvert.8.in
+++ b/man/lvconvert.8.in
@@ -338,6 +338,8 @@ VG/RaidLV
\[bu]
Change the number of images in raid1 RaidLV.
+Note the current maximum is 9 providing 10 raid1 legs.
+
.B lvconvert \-\-splitmirrors
Number
VG/RaidLV
diff --git a/man/lvcreate.8.in b/man/lvcreate.8.in
index 2873e72..bf3c33f 100644
--- a/man/lvcreate.8.in
+++ b/man/lvcreate.8.in
@@ -399,6 +399,9 @@ to configure default mirror segment type.
The options
\fB\-\-mirrorlog\fP and \fB\-\-corelog\fP apply
to the legacy "\fImirror\fP" segment type only.
+
+Note the current maxima for mirrors are 7 for "mirror" providing
+8 mirror legs and 9 for "raid1" providing 10 legs.
.
.HP
.BR \-\-mirrorlog
@@ -633,8 +636,12 @@ section of \fBlvm.conf (5)\fP or add
\fB\-\-config allocation/raid_stripe_all_devices=1\fP
.br
to the command.
-.br
-Note the current limitation of 8 stripes total in any RaidLV including parity devices.
+
+Note the current maxima for stripes depend on the created RAID type.
+For raid10, the maximum of stripes is 32,
+for raid0, it is 64,
+for raid4/5, it is 63
+and for raid6 it is 62.
See the \fB\-\-nosync\fP option to optionally avoid initial syncrhonization of RaidLVs.
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index 72b4931..23e3cd5 100644
--- a/tools/lvconvert.c
+++ b/tools/lvconvert.c
@@ -1910,6 +1910,11 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l
if (lp->mirrors_supplied) {
if (!*lp->type_str || !strcmp(lp->type_str, SEG_TYPE_NAME_RAID1) || !strcmp(lp->type_str, SEG_TYPE_NAME_LINEAR) ||
(!strcmp(lp->type_str, SEG_TYPE_NAME_STRIPED) && image_count == 1)) {
+ if (image_count > DEFAULT_RAID1_MAX_IMAGES) {
+ log_error("Only up to %u mirrors in %s LV %s supported currently.",
+ DEFAULT_RAID1_MAX_IMAGES, lp->segtype->name, display_lvname(lv));
+ return 0;
+ }
if (!lv_raid_change_image_count(lv, image_count, lp->pvh))
return_0;
diff --git a/tools/lvcreate.c b/tools/lvcreate.c
index 28d8c92..ccd07f0 100644
--- a/tools/lvcreate.c
+++ b/tools/lvcreate.c
@@ -527,8 +527,21 @@ static int _read_mirror_and_raid_params(struct cmd_context *cmd,
struct lvcreate_params *lp)
{
int pagesize = lvm_getpagesize();
- unsigned max_images = segtype_is_raid(lp->segtype) ? DEFAULT_RAID_MAX_IMAGES :
- DEFAULT_MIRROR_MAX_IMAGES;
+ unsigned max_images;
+
+ if (seg_is_raid(lp)) {
+ if (seg_is_raid1(lp))
+ max_images = DEFAULT_RAID1_MAX_IMAGES;
+ else {
+ max_images = DEFAULT_RAID_MAX_IMAGES;
+ if (seg_is_raid4(lp) ||
+ seg_is_any_raid5(lp))
+ max_images--;
+ else if (seg_is_any_raid6(lp))
+ max_images -= 2;
+ }
+ } else
+ max_images = DEFAULT_MIRROR_MAX_IMAGES;
/* Common mirror and raid params */
if (arg_is_set(cmd, mirrors_ARG)) {
@@ -556,8 +569,19 @@ static int _read_mirror_and_raid_params(struct cmd_context *cmd,
/* Default to 2 mirrored areas if '--type mirror|raid1|raid10' */
lp->mirrors = seg_is_mirrored(lp) ? 2 : 1;
- if (max(lp->mirrors, lp->stripes) > max_images) {
- log_error("Only up to %u images in %s supported currently.",
+ /* FIMXE: raid10 check has to change once we support data copies and odd numbers of stripes */
+ if (seg_is_raid10(lp) && lp->mirrors * lp->stripes > max_images) {
+ log_error("Only up to %u stripes in %s supported currently.",
+ max_images, lp->segtype->name);
+ return 0;
+ } else if (seg_is_mirrored(lp)) {
+ if (lp->mirrors > max_images) {
+ log_error("Only up to %u mirrors in %s supported currently.",
+ max_images, lp->segtype->name);
+ return 0;
+ }
+ } else if (lp->stripes > max_images) {
+ log_error("Only up to %u stripes in %s supported currently.",
max_images, lp->segtype->name);
return 0;
}
7 years, 9 months
master - raid: Avoid double suffix on rmeta LV name paired with rimage LV.
by Alasdair Kergon
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=93b61c07eb14f6...
Commit: 93b61c07eb14f6185c708bd74f7e471b50cf251b
Parent: e30fb19030823cd8bb181e2b494488c18c187850
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Thu Aug 11 23:31:49 2016 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Thu Aug 11 23:31:49 2016 +0100
raid: Avoid double suffix on rmeta LV name paired with rimage LV.
---
WHATS_NEW | 1 +
lib/metadata/raid_manip.c | 23 +++++++++++++++++++----
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 8f4fe9c..425729a 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.164 -
===================================
+ Avoid double suffix when naming _rmeta LV paired with _rimage LV.
Version 2.02.163 - 10th August 2016
===================================
diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c
index c1cff33..ce560fe 100644
--- a/lib/metadata/raid_manip.c
+++ b/lib/metadata/raid_manip.c
@@ -108,6 +108,22 @@ static void _check_and_adjust_region_size(const struct logical_volume *lv)
return _ensure_min_region_size(lv);
}
+/* Strip any raid suffix off LV name */
+static char *_top_level_raid_lv_name(struct logical_volume *lv)
+{
+ char *new_lv_name, *suffix;
+
+ if (!(new_lv_name = dm_pool_strdup(lv->vg->vgmem, lv->name))) {
+ log_error("Failed to allocate string for new LV name.");
+ return NULL;
+ }
+
+ if ((suffix = first_substring(new_lv_name, "_rimage_", "_mimage_", NULL)))
+ *suffix = '\0';
+
+ return new_lv_name;
+}
+
static int _lv_is_raid_with_tracking(const struct logical_volume *lv,
struct logical_volume **tracking)
{
@@ -679,7 +695,7 @@ static int _alloc_rmeta_for_lv(struct logical_volume *data_lv,
struct dm_list allocatable_pvs;
struct alloc_handle *ah;
struct lv_segment *seg = first_seg(data_lv);
- char *p, base_name[NAME_LEN];
+ char *base_name;
dm_list_init(&allocatable_pvs);
@@ -699,9 +715,8 @@ static int _alloc_rmeta_for_lv(struct logical_volume *data_lv,
return 0;
}
- (void) dm_strncpy(base_name, data_lv->name, sizeof(base_name));
- if ((p = strstr(base_name, "_mimage_")))
- *p = '\0';
+ if (!(base_name = _top_level_raid_lv_name(data_lv)))
+ return_0;
if (!(ah = allocate_extents(data_lv->vg, NULL, seg->segtype, 0, 1, 0,
seg->region_size,
7 years, 9 months
master - spec: Add new files
by Marian Csontos
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e30fb19030823c...
Commit: e30fb19030823cd8bb181e2b494488c18c187850
Parent: 2fed8d8515644d25c24e8f62b450d80d34911970
Author: Marian Csontos <mcsontos(a)redhat.com>
AuthorDate: Thu Aug 11 14:10:24 2016 +0200
Committer: Marian Csontos <mcsontos(a)redhat.com>
CommitterDate: Thu Aug 11 14:10:59 2016 +0200
spec: Add new files
---
spec/packages.inc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/spec/packages.inc b/spec/packages.inc
index 817457b..66946be 100644
--- a/spec/packages.inc
+++ b/spec/packages.inc
@@ -115,6 +115,7 @@ fi
%{_mandir}/man8/lvmconfig.8.gz
%{_mandir}/man8/lvmdiskscan.8.gz
%{_mandir}/man8/lvmdump.8.gz
+%{_mandir}/man8/lvm-fullreport.8.gz
%{_mandir}/man8/lvmsadc.8.gz
%{_mandir}/man8/lvmsar.8.gz
%{_mandir}/man8/lvreduce.8.gz
@@ -179,6 +180,7 @@ fi
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/thin-performance.profile
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/cache-mq.profile
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/cache-smq.profile
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lvm/profile/lvmdbusd.profile
%dir %{_sysconfdir}/lvm/backup
%dir %{_sysconfdir}/lvm/cache
%dir %{_sysconfdir}/lvm/archive
7 years, 9 months
master - lvmcmdline: use long int for number returned by strtol
by Peter Rajnoha
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2fed8d8515644d...
Commit: 2fed8d8515644d25c24e8f62b450d80d34911970
Parent: 480c1c95993a1a2903e580ca402ba6368088decd
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Wed Aug 10 09:10:28 2016 +0200
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Wed Aug 10 09:10:37 2016 +0200
lvmcmdline: use long int for number returned by strtol
---
tools/lvmcmdline.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index af38799..9a4deb7 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1853,7 +1853,7 @@ static int _do_get_custom_fd(const char *env_var_name, int *fd)
{
const char *str;
char *endptr;
- int tmp_fd;
+ long int tmp_fd;
*fd = -1;
7 years, 9 months
v2_02_163 annotated tag has been created
by Alasdair Kergon
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2ab65e7d5b2ab2...
Commit: 2ab65e7d5b2ab2ed1e26b4acecf165d8aa276612
Parent: 0000000000000000000000000000000000000000
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: 2016-08-10 01:43 +0000
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: 2016-08-10 01:43 +0000
annotated tag: v2_02_163 has been created
at 2ab65e7d5b2ab2ed1e26b4acecf165d8aa276612 (tag)
tagging 37b8b84fee7459f0a78562c281c405484f25b9db (commit)
replaces v2_02_162
Release 2.02.163.
Extensions to the JSON produced by the lvm shell for lvmdbusd to use.
Support for lvconvert between mirror and raid1, and between striped/raid0 and
raid4(*).
The next releases will focus on testing these new features and fixing bugs
in them.
(*) The lvconvert work requires an upstream kernel with bug fixes posted
on the dm-devel mailing list.
54 files changed, 2456 insertions(+), 681 deletions(-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAleqiPAACgkQIoGRwVZ+LBfwTgCgrd9wY20EWMXNNe7NFVoqobZa
rQIAnRjgk2nJlImXLig+9NL/01RdezBX
=79Mb
-----END PGP SIGNATURE-----
Alasdair G Kergon (33):
post-release
lvconvert: Remove hard-coded segment names.
lvconvert: Only obtain --type parameter once.
lvconvert: Rearrange code that decides segtype.
tools: Unify stripesize parameter validation.
lvconvert: Move stripe validation code later.
tools: mirror also supports stripesize
tools: Also recognise segtype with thin and cache.
lvconvert: Fix --type thin recognition.
lvconvert: Rely upon lp->thin and lp->cache.
lvconvert: Set lp->segtype in only one place.
Revert "thin: when converting a thin pool data or metadata LV from"
lvconvert: Forbid stripe parameters with --repair.
lvconvert: Treat --repair as an independent case.
lvconvert: Divide into 12 categories.
lvconvert: Preserve mirror region size with --repair.
lvconvert: Pass region_size to lv_raid_convert.
lvconvert: Provide entry point for new functionality.
lvconvert: Improve error message when no -m.
striped: Add precise macros for original segtype.
raid0: Validate presence of raid0 meta_areas more tightly.
segtypes: Further segtype macros.
raid: Turn lv_raid_change_image_count into wrapper
raid: Tell lib whether stripesize was specified
raid: Move two functions.
raid: Pass list of LVs to remove into more fns.
raid: Add workaround to prepare for raid4 conversions.
raid: Report supported lvconvert conversions if invalid.
lvconvert: Support raid0<->raid4 and mirror<->raid1.
lvconvert: Limit --corelog and --mirrorlog to mirrors.
test: Drop --mirrorlog when not a mirror.
lvconvert: Fix repair and replace routing.
pre-release
Bryn M. Reeves (2):
man: minor fixes to dmstats.8.in
man: explain deletion of 1st group member in dmstats.8.in
David Teigland (4):
man: include info about disabled lvmetad
man: minor corrections in pvscan
lvconvert: add FIXME
lvconvert: separate type raid to mirror
Heinz Mauelshagen (12):
thin: when converting a thin pool data or metadata LV from
vg_validate: new RAID segment checks in check_lv_segments()
vg_validate: correct min_recovery_rate check message
lvchange: Allow device specification when requesting a repair
WHATS_NEW: add '--rebuild PV' option to lvchange to allow for PV selective rebuilds
raid_manip: fix log print format from commit d2c3b23e6dc3
WHATS_NEW: fixup order
lvcreate: reject '--nosync' option for RAID6 LVs
WHATS_NEW: reject --nosync option for RAID6 LVs in lvcreate
test: add lvconvert-raid-takeover.sh
test: fix lvcreate-large-raid.sh
test: fix/enhance lvcreate-large-raid*.sh
Peter Rajnoha (18):
lvmcmdline: do not refresh whole cmd context if profile dropped after processing LVM cmd
log: separate output and make it possible to use given FDs
shell: also collect last command's return code for subsequent 'lastlog' invocation
refactor: move report grouping and log reporting handles from processing_handle to cmd_context
lvmcmdline: return 0/NULL if cmd->arg_values not set and arg_count/grouped_arg_count/arg_value called
libdm: report: add dm_report_destroy_rows
libdm: report: postpone printing of JSON starting '{' character till it's needed
libdm: report: add dm_report_group_output_and_pop_all
lvm: shell: extend log report to cover whole lvm shell's main loop
lvmcmdline: profile: early profile load for lvm shell
lvm: shell: honor log/command_log_selection as default and reset to this value after lastlog
conf: add lvmdbusd.profile
refactor: modify original _check_profile fn and rename to config_force_check for general use
config: add support for CFG_DISALLOW_INTERACTIVE flag to mark settings as not suitable for override in interactive mode
conf: mark selected settings with CFG_DISALLOW_INTERACTIVE flag
report: add report_reset_cmdlog_seqnum and call it for each new cmd executed in lvm shell
man: add lvm fullreport man page
man: fix references to names for --configreport arg in pvs, vgs and lvs man page
7 years, 9 months