mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
Fix fsadm lvresize for filesystem block sizes != 1024.
Fixes rhbz 480022.
This commit is contained in:
parent
bf180e98f4
commit
422c49558f
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.44 -
|
Version 2.02.44 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix fsadm failure with block size != 1K.
|
||||||
Fix pvs segfault when run with orphan PV and some VG fields.
|
Fix pvs segfault when run with orphan PV and some VG fields.
|
||||||
Display a 'dev_size' of zero for missing devices in reports.
|
Display a 'dev_size' of zero for missing devices in reports.
|
||||||
Add pv_mda_size to pvs and vg_mda_size to vgs.
|
Add pv_mda_size to pvs and vg_mda_size to vgs.
|
||||||
|
@ -144,7 +144,7 @@ static int do_resizefs_reduce(const struct cmd_context *cmd,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dm_snprintf(size_buf, SIZE_BUF, "%" PRIu64,
|
if (dm_snprintf(size_buf, SIZE_BUF, "%" PRIu64 "K",
|
||||||
(uint64_t) lp->extents * vg->extent_size / 2) < 0) {
|
(uint64_t) lp->extents * vg->extent_size / 2) < 0) {
|
||||||
log_error("Couldn't generate new LV size string");
|
log_error("Couldn't generate new LV size string");
|
||||||
return 0;
|
return 0;
|
||||||
@ -635,7 +635,7 @@ static int _lvresize(struct cmd_context *cmd, struct volume_group *vg,
|
|||||||
lp->lv_name);
|
lp->lv_name);
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
}
|
||||||
if (dm_snprintf(size_buf, SIZE_BUF, "%" PRIu64,
|
if (dm_snprintf(size_buf, SIZE_BUF, "%" PRIu64 "K",
|
||||||
(uint64_t) lp->extents * vg->extent_size / 2) < 0) {
|
(uint64_t) lp->extents * vg->extent_size / 2) < 0) {
|
||||||
log_error("Couldn't generate new LV size string");
|
log_error("Couldn't generate new LV size string");
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
|
Loading…
Reference in New Issue
Block a user