[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Nbd] Fwd: Error: Ioctl NBD_SET_TIMEOUT cannot be called when compiled on a system that does not support it



FYI, In case anybody else runs into this using the -timeout option
with recent nbd... (sorry, didn't mean to take this discussion
off-list...)

Looks like NBD_SET_TIMEOUT ioctl definition is missing from the nbd.h
in 2.9.16+ nbd tools.

--
Paul

---------- Forwarded message ----------
From: Richard Huddleston <rhuddusa@...17...>
Date: Fri, Aug 6, 2010 at 11:31 AM
Subject: Re: [Nbd] Error: Ioctl NBD_SET_TIMEOUT cannot be called when
compiled on a system that does not support it
To: Paul Clements <paul.clements@...124...>


forgive my linux ignorance but,
i have downloaded nbd 2.9.15, 2.9.16, and 2.9.17 from sourceforge

2.9.15 does not included an nbd.h file, whereas 2.9.16 and 2.9.17 do

me@...811...:~$ find / -mount -type f -name nbd.h -print
/usr/src/linux-headers-2.6.32-24/include/linux/nbd.h
/usr/src/linux-headers-2.6.32-24-server/include/config/blk/dev/nbd.h
/usr/include/linux/nbd.h
/opt/nbd-2.9.17/nbd.h
/opt/nbd-2.9.16/nbd.h

NOTE: /opt/nbd-2.9.15 is not listed, cause it does not have an nbd.h file

so i assume that means when compiling 2.9.15 on my box, it was taking
nbd.h from the include?

me@...811...:~$ find / -mount -type f -name nbd.h -print0 | xargs -0 grep TIMEOUT
/usr/src/linux-headers-2.6.32-24/include/linux/nbd.h:#define
NBD_SET_TIMEOUT _IO( 0xab, 9 )
/usr/include/linux/nbd.h:#define NBD_SET_TIMEOUT _IO( 0xab, 9 )

Paul, is this the information you were looking for?


On Thu, Aug 5, 2010 at 11:24 PM, Paul Clements
<paul.clements@...124...> wrote:
> On Thu, Aug 5, 2010 at 10:28 PM, Richard Huddleston <rhuddusa@...17...> wrote:
>> I just upgraded to nbd-2.9.17 on my client machine and i'm getting the
>> following error
>>
>> Error: Ioctl NBD_SET_TIMEOUT cannot be called when compiled on a
>> system that does not support it
>>
>> i had been using the -timeout option previously, and did not encounter
>> this error in previous nbd versions
>>
>> i'm running
>> Linux 2.6.32-24-server #39-Ubuntu SMP  x86_64 GNU/Linux
>
> That kernel supports NBD_SET_TIMEOUT. Maybe the nbd.h header file
> included with the nbd tools doesn't have NBD_SET_TIMEOUT in it?
>
> --
> Paul
>



Reply to: