1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-04 21:47:46 +03:00

Correct error message for non-snapshot activation failure.

This commit is contained in:
Alasdair Kergon 2003-01-06 21:06:43 +00:00
parent 633dd7ff9b
commit 383b6f5fcc

View File

@ -439,9 +439,12 @@ static int _lvcreate(struct cmd_context *cmd, struct lvcreate_params *lp)
return 0;
if (!lock_vol(cmd, lv->lvid.s, LCK_LV_ACTIVATE)) {
/* FIXME Remove the failed lv we just added */
log_error("Aborting. Failed to wipe snapshot "
"exception store. Remove new LV and retry.");
if (lp->snapshot)
/* FIXME Remove the failed lv we just added */
log_error("Aborting. Failed to wipe snapshot "
"exception store. Remove new LV and retry.");
else
log_error("Failed to activate new LV.");
return 0;
}