From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 4 21:43:25 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 023BF1065789 for ; Tue, 4 Aug 2009 21:43:25 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id BB63B8FC16 for ; Tue, 4 Aug 2009 21:43:24 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [IPv6:2001:7b8:3a7:0:c1b0:9656:a47:318] (unknown [IPv6:2001:7b8:3a7:0:c1b0:9656:a47:318]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 200295C42; Tue, 4 Aug 2009 23:43:23 +0200 (CEST) Message-ID: <4A78AB7C.3040406@andric.com> Date: Tue, 04 Aug 2009 23:43:24 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3pre) Gecko/20090801 Shredder/3.0b4pre MIME-Version: 1.0 To: Mel Flynn References: <200908041245.35926.mel.flynn+fbsd.hackers@mailing.thruhere.net> In-Reply-To: <200908041245.35926.mel.flynn+fbsd.hackers@mailing.thruhere.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Spot the error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2009 21:43:26 -0000 On 2009-08-04 22:45, Mel Flynn wrote: > % mount -t msdofs /dev/label/camera ~/camera > mount: /dev/label/camera : Operation not supported by device > > I would expect something along the lines of "unknown file system type". Is > this fixable? Yes, just use "msdosfs" instead. ;) That said, it looks like ENODEV is returned by vfs_domount(), whenever the fs type is not found in the list of supported filesystems: [...] if (fsflags & MNT_ROOTFS) vfsp = vfs_byname(fstype); else vfsp = vfs_byname_kld(fstype, td, &error); if (vfsp == NULL) return (ENODEV); [...] Note that in the case when vfs_byname_kld() gets called, the error it returns is silently thrown away. What a pity. :) In any case, you could paint a lot of bikesheds about which error code from errno.h would be most suited for this situation, unfortunately. And there isn't a special "unknown file system" error code, either...