From owner-freebsd-current Sat Aug 18 12:34:50 2001 Delivered-To: freebsd-current@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id B149C37B413 for ; Sat, 18 Aug 2001 12:34:46 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from mailhost.feral.com (mjacob@mailhost.feral.com [192.67.166.1]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f7IJYQI60725; Sat, 18 Aug 2001 12:34:26 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Sat, 18 Aug 2001 12:34:26 -0700 (PDT) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: David Malone Cc: Mikhail Teterin , current@FreeBSD.ORG Subject: Re: "block device required" In-Reply-To: <20010818201447.A90048@walton.maths.tcd.ie> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 18 Aug 2001, David Malone wrote: > 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, > Just because there is no 'block' device representation in /dev doesn't mean that there aren't block devices. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message