From owner-freebsd-current Sat Aug 18 12:15: 0 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id AF8A437B405 for ; Sat, 18 Aug 2001 12:14:48 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 18 Aug 2001 20:14:48 +0100 (BST) Date: Sat, 18 Aug 2001 20:14:47 +0100 From: David Malone To: Mikhail Teterin Cc: current@freebsd.org Subject: Re: "block device required" Message-ID: <20010818201447.A90048@walton.maths.tcd.ie> References: <200108181502.f7IF25559851@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200108181502.f7IF25559851@aldan.algebra.com>; from mi@aldan.algebra.com on Sat, Aug 18, 2001 at 11:02:04AM -0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Aug 18, 2001 at 11:02:04AM -0400, Mikhail Teterin wrote: > Now, this may be the wrong way to do it: > > # mount -oro -t msdos /dev/ugen0 /mnt > > But the error message is certainly misleading. Especially, > since the are no block devices in -current any more :) > > msdosfs: /dev/ugen0: Block device required This is caused by the kernel returning ENOTBLK, which I think still makes sense in the kernel. It's possible that the errno should be translated to a different string though... David. ./fs/hpfs/hpfs_vfsops.c: err = ENOTBLK; ./fs/ntfs/ntfs_vfsops.c: err = ENOTBLK; ./i386/ibcs2/ibcs2_errno.c: IBCS2_ENOTBLK, /* 15 */ ./kern/vfs_aio.c: if (error == ENOTBLK) ./kern/vfs_subr.c: *errp = ENOTBLK; ./kern/vfs_subr.c: *errp = ENOTBLK; ./compat/svr4/svr4_sysvec.c: SVR4_ENOTBLK, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message