mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Improve lvcreate "insufficient extents" errors to "insufficient free space".
This commit is contained in:
parent
a1d4ec1d6e
commit
3e3591904b
@ -1,6 +1,7 @@
|
|||||||
Version 2.02.83 -
|
Version 2.02.83 -
|
||||||
===================================
|
===================================
|
||||||
Always use O_DIRECT when opening block devices to check for partitioning.
|
Always use O_DIRECT when opening block devices to check for partitioning.
|
||||||
|
Improve lvcreate "insufficient extents" errors to "insufficient free space".
|
||||||
|
|
||||||
Version 2.02.82 - 24th January 2011
|
Version 2.02.82 - 24th January 2011
|
||||||
===================================
|
===================================
|
||||||
|
@ -1481,7 +1481,7 @@ static int _allocate(struct alloc_handle *ah,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (log_needs_allocating) {
|
if (log_needs_allocating) {
|
||||||
log_error("Insufficient extents for log allocation "
|
log_error("Insufficient free space for log allocation "
|
||||||
"for logical volume %s.",
|
"for logical volume %s.",
|
||||||
lv ? lv->name : "");
|
lv ? lv->name : "");
|
||||||
goto out;
|
goto out;
|
||||||
@ -3232,8 +3232,9 @@ int lv_create_single(struct volume_group *vg,
|
|||||||
|
|
||||||
if (!seg_is_virtual(lp) &&
|
if (!seg_is_virtual(lp) &&
|
||||||
vg->free_count < lp->extents) {
|
vg->free_count < lp->extents) {
|
||||||
log_error("Insufficient free extents (%u) in volume group %s: "
|
log_error("Volume group \"%s\" has insufficient free space "
|
||||||
"%u required", vg->free_count, vg->name, lp->extents);
|
"(%u extents): %u required.",
|
||||||
|
vg->name, vg->free_count, lp->extents);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user