Date: Tue, 04 Aug 2009 23:43:24 +0200 From: Dimitry Andric <dimitry@andric.com> To: Mel Flynn <mel.flynn+fbsd.hackers@mailing.thruhere.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Spot the error Message-ID: <4A78AB7C.3040406@andric.com> In-Reply-To: <200908041245.35926.mel.flynn%2Bfbsd.hackers@mailing.thruhere.net> References: <200908041245.35926.mel.flynn%2Bfbsd.hackers@mailing.thruhere.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A78AB7C.3040406>