mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-23 21:35:29 +03:00
Fix gulm->errno error number conversion.
This commit is contained in:
parent
7395f0e680
commit
502250d08f
@ -650,15 +650,13 @@ static int gulm_to_errno(int gulm_ret)
|
|||||||
switch (gulm_ret)
|
switch (gulm_ret)
|
||||||
{
|
{
|
||||||
case lg_err_TryFailed:
|
case lg_err_TryFailed:
|
||||||
errno = EAGAIN;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case lg_err_AlreadyPend:
|
case lg_err_AlreadyPend:
|
||||||
errno = EBUSY;
|
errno = EAGAIN;
|
||||||
|
break;
|
||||||
|
|
||||||
/* More?? */
|
/* More?? */
|
||||||
default:
|
default:
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return gulm_ret ? -1 : 0;
|
return gulm_ret ? -1 : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user