> 0, of course
parent
c1929cabe0
commit
218e294e9c
|
@ -498,7 +498,7 @@ protected:
|
||||||
goto end_unmap;
|
goto end_unmap;
|
||||||
}
|
}
|
||||||
ioctl(nbd, NBD_SET_FLAGS, flags);
|
ioctl(nbd, NBD_SET_FLAGS, flags);
|
||||||
if (timeout >= 0)
|
if (timeout > 0)
|
||||||
{
|
{
|
||||||
r = ioctl(nbd, NBD_SET_TIMEOUT, (unsigned long)timeout);
|
r = ioctl(nbd, NBD_SET_TIMEOUT, (unsigned long)timeout);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
|
Loading…
Reference in New Issue