Re: ENOTTY from ext3 code?

Andrew Morton (akpm@zip.com.au)
Tue, 19 Feb 2002 12:56:44 -0800


Pavel Machek wrote:
>
> Hi!
>
> ext3/ioctl.c:
>
> ...
> return -ENOTTY;
>
> Does it really make sense to return "not a typewriter" from ext3
> ioctl?

ERRORS
...

ENOTTY d is not associated with a character special
device.

ENOTTY The specified request does not apply to the kind of
object that the descriptor d references.

Lots and lots of ioctls return ENOTTY when passed a request
which they don't understand. There's probably a great reason
for this, but I can't immediately think what it might be.

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/