Re: [PATCH] Format Unit can take many hours

Jens Axboe
2004-05-11T18:30:36Z

On Tue, May 11 2004, Ricky Beam wrote:
> On Tue, 11 May 2004, Bob Tracy wrote:
> >Moreover, it simply "feels" wrong to define a constant for something
> >that isn't... The quick fix of increasing the timeout doesn't address
> >the underlying issue of how long a format should take, and as Ricky
> >implies, that's probably more the concern of the application rather
> >than the driver.
>
> The real problem is a lack of being able to specify a timeout for user
> supplied commands. In-kernel drivers can set a command timeout. The
> IOCTL interface does not export that capability.

Noone should use that interface, period. That ioctl is about as bad an
interface as you could imagine. Use any variant of sg and you should be
fine.

--
Jens Axboe