mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Fix fsadm lvresize for filesystem block sizes != 1024.
Fixes rhbz 480022.
This commit is contained in:
parent
125fb7fbdb
commit
7eff83d689
@ -1,5 +1,6 @@
|
||||
Version 2.02.44 -
|
||||
====================================
|
||||
Fix fsadm failure with block size != 1K.
|
||||
Fix pvs segfault when run with orphan PV and some VG fields.
|
||||
Display a 'dev_size' of zero for missing devices in reports.
|
||||
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;
|
||||
}
|
||||
|
||||
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) {
|
||||
log_error("Couldn't generate new LV size string");
|
||||
return 0;
|
||||
@ -635,7 +635,7 @@ static int _lvresize(struct cmd_context *cmd, struct volume_group *vg,
|
||||
lp->lv_name);
|
||||
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) {
|
||||
log_error("Couldn't generate new LV size string");
|
||||
return ECMD_FAILED;
|
||||
|
Loading…
Reference in New Issue
Block a user