From owner-freebsd-fs@FreeBSD.ORG Sat Jan 28 23:01:01 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F8351065674 for ; Sat, 28 Jan 2012 23:01:01 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 54B418FC0A for ; Sat, 28 Jan 2012 23:01:01 +0000 (UTC) Received: by mail-iy0-f182.google.com with SMTP id o4so6115252iae.13 for ; Sat, 28 Jan 2012 15:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+Goqvmvkb8u/H+4sFbB8JWoHhCZwOtPlPB/XTCBPRmw=; b=o1XpOv57pE97JTd6/05WEZyJzYgk6lLstC6wKhT92beQGsvQbfSD7xj1/vDclmncuB /brzYKFuY0GqWGPjjxCh26gtX2njyhXq7iPtuta+R1RI7o2ru+98QU05ay3srTvOJlGe zCI49iHVDkvORkPdnPgqAQ/bK+6Fz85H6t6h4= MIME-Version: 1.0 Received: by 10.50.236.73 with SMTP id us9mr12549399igc.16.1327789879986; Sat, 28 Jan 2012 14:31:19 -0800 (PST) Received: by 10.231.183.21 with HTTP; Sat, 28 Jan 2012 14:31:19 -0800 (PST) Received: by 10.231.183.21 with HTTP; Sat, 28 Jan 2012 14:31:19 -0800 (PST) In-Reply-To: <4F246CA9.30803@uffe.org> References: <201201272310.q0RNABvZ065758@freefall.freebsd.org> <20120128004755.GA89980@icarus.home.lan> <4F246CA9.30803@uffe.org> Date: Sat, 28 Jan 2012 22:31:19 +0000 Message-ID: From: Chris Rees To: Uffe Jakobsen Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: kern/164516: [ext2fs] unable to mount EXT2 filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2012 23:01:01 -0000 On 28 Jan 2012 22:14, "Uffe Jakobsen" wrote: > > > > On 2012-01-28 01:47, Jeremy Chadwick wrote: >> >> On Fri, Jan 27, 2012 at 11:10:11PM +0000, Uffe Jakobsen wrote: >>> >>> The following reply was made to PR kern/164516; it has been noted by GNATS. >>> >>> From: Uffe Jakobsen >>> To: bug-followup@FreeBSD.org >>> Cc: >>> Subject: Re: kern/164516: [ext2fs] unable to mount EXT2 filesystem >>> Date: Fri, 27 Jan 2012 20:49:05 +0100 >>> >>> > >>> > Not a bug. The file system type name is "ext2fs" not "ext2". >>> > Use "mount -t ext2fs /dev/md0 /mnt/tmp0" instead. >>> > >>> >>> Instead of reporting "Operation not supported by device" >>> Shouldn't it report unknown filesystem type ? >> >> >> Please look through /usr/include/errno.h and let us know what error code >> would represent "unknown filesystem type". :-) >> > > There are plenty of other places in the mount src where we exit without a specific error code. Question is if there exists a scenario where the requested filesystem type would/could not be found by getvfsbyname() ? > > I've met this problem myself a number of times - and even in this case I did not spot the spelling error right away ('ext2fs' and not 'ext2'). > > The returned error 'Operation not supported by device' - atleast to me - indicates that the mount process got much further before running into some kind of problem. The times when I've met this error I've begun inspecting mount options etc before realizing that the fstype had a typo. > Normally when an error comes up I check the manpage. Chris