mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-22 06:50:52 +03:00
debug: drop some unneeded backtraces
(cherry picked from commit 88faf5a53b34cdfe2d4932a6800af8530f8f5396) Conflicts: lib/format_text/export.c tools/lvconvert.c
This commit is contained in:
parent
889c88e9da
commit
3fe2610cff
@ -1097,13 +1097,13 @@ struct dm_config_tree *export_vg_to_config_tree(struct volume_group *vg)
|
||||
|
||||
if (!export_vg_to_buffer(vg, &buf)) {
|
||||
log_error("Could not format metadata for VG %s.", vg->name);
|
||||
return_NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!(vg_cft = config_tree_from_string_without_dup_node_check(buf))) {
|
||||
log_error("Error parsing metadata for VG %s.", vg->name);
|
||||
dm_free(buf);
|
||||
return_NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
dm_free(buf);
|
||||
|
@ -546,7 +546,7 @@ static struct volume_group *_vg_read_raw_area(struct format_instance *fid,
|
||||
|
||||
if (!(mdah = raw_read_mda_header(fid->fmt, area, primary_mda))) {
|
||||
log_error("Failed to read vg %s from %s", vgname, dev_name(area->dev));
|
||||
goto_out;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!(rlocn = _read_metadata_location_vg(area, mdah, primary_mda, vgname, &precommitted))) {
|
||||
|
@ -4680,7 +4680,7 @@ static uint64_t *_stats_map_file_regions(struct dm_stats *dms, int fd,
|
||||
/* make space for end-of-table marker */
|
||||
if (!(regions = dm_malloc((1 + *count) * sizeof(*regions)))) {
|
||||
log_error("Could not allocate memory for region IDs.");
|
||||
goto_out;
|
||||
goto out;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -4142,7 +4142,7 @@ static int _lvconvert_to_cache_vol_single(struct cmd_context *cmd,
|
||||
/* Convert lv to cache vol using cachepool_lv. */
|
||||
|
||||
if (!_lvconvert_to_cache_vol(cmd, lv, cachepool_lv))
|
||||
goto_out;
|
||||
goto out;
|
||||
|
||||
return ECMD_PROCESSED;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user