Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 19 Feb 2002 16:53:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 19 Feb 2002 16:53:42 -0500 Received: from nat-pool-rdu.redhat.com ([66.187.233.200]:122 "EHLO devserv.devel.redhat.com") by vger.kernel.org with ESMTP id ; Tue, 19 Feb 2002 16:53:29 -0500 Date: Tue, 19 Feb 2002 16:53:26 -0500 From: Pete Zaitcev Message-Id: <200202192153.g1JLrQH05684@devserv.devel.redhat.com> To: Pavel Machek Cc: linux-kernel@vger.kernel.org Subject: Re: ENOTTY from ext3 code? In-Reply-To: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > ext3/ioctl.c: > ... > return -ENOTTY; > > Does it really make sense to return "not a typewriter" from ext3 > ioctl? Absolutely. In fact, it's a pet pieve of mine. Lots and lots of clueless driver writes return -EINVAL in such cases, and I keep cleaning it up. The problem with EINVAL is that it makes it harder to diagnose any problems that can come up. Also, recent strerror() returns "Inappropriate ioctl for a device", if that is your concern. Personally, I think "Not a typewriter" was a warmer and fuzzier reference to the roots, but oh well... Dennis giveth, TOG taketh away... -- Pete - 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/