> 0, of course
This commit is contained in:
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user