Re: ENOTTY from ext3 code?

From: Andrew Morton (akpm@zip.com.au)
Date: Tue Feb 19 2002 - 15:56:44 EST


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/



This archive was generated by hypermail 2b29 : Sat Feb 23 2002 - 21:00:22 EST