1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Improve lvcreate "insufficient extents" errors to "insufficient free space".

This commit is contained in:
Mike Snitzer 2011-01-28 02:58:00 +00:00
parent a1d4ec1d6e
commit 3e3591904b
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
Version 2.02.83 -
===================================
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
===================================

View File

@ -1481,7 +1481,7 @@ static int _allocate(struct alloc_handle *ah,
}
if (log_needs_allocating) {
log_error("Insufficient extents for log allocation "
log_error("Insufficient free space for log allocation "
"for logical volume %s.",
lv ? lv->name : "");
goto out;
@ -3232,8 +3232,9 @@ int lv_create_single(struct volume_group *vg,
if (!seg_is_virtual(lp) &&
vg->free_count < lp->extents) {
log_error("Insufficient free extents (%u) in volume group %s: "
"%u required", vg->free_count, vg->name, lp->extents);
log_error("Volume group \"%s\" has insufficient free space "
"(%u extents): %u required.",
vg->name, vg->free_count, lp->extents);
return 0;
}