[lkml]   [2009]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectsg timeout problem
struct sg_io_hdr sg_io;
sg_io.timeout = UINT_MAX;
ioctl(fd, SG_IO, &sg_io);

As far as I can tell, if sg is running on top of LIBATA, the infinite
timeout is honoured.

But if sg is running on top of an actual SCSI driver, someone aborts the
ioctl after 3 seconds. The ioctl returns success even though the operation
didn't complete. I tried this with two Adaptec drivers and one NinjaSCSI
driver with 100% repro.

What am I missing? I need the call to run to completion.

Power up the Internet with Yahoo! Toolbar.

 \ /
  Last update: 2009-05-06 09:25    [W:0.050 / U:21.128 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site