1
0
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:
Patrick Caulfield 2005-02-17 12:56:19 +00:00
parent 7395f0e680
commit 502250d08f

View File

@ -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;