From owner-freebsd-current@FreeBSD.ORG Thu Aug 19 19:16:58 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4526F16A4CE for ; Thu, 19 Aug 2004 19:16:58 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1AC843D2D for ; Thu, 19 Aug 2004 19:16:57 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id i7JJGosS030914; Thu, 19 Aug 2004 21:16:51 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Giorgos Keramidas From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 19 Aug 2004 22:10:44 +0300." <20040819191044.GB670@gothmog.gr> Date: Thu, 19 Aug 2004 21:16:50 +0200 Message-ID: <30912.1092943010@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: current@freebsd.org cc: Antony Mawer Subject: Re: [REVIEW/TEST] Rewritten floppy driver. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 19:16:58 -0000 In message <20040819191044.GB670@gothmog.gr>, Giorgos Keramidas writes: >On 2004-08-20 04:38, Antony Mawer wrote: >> Giorgos Keramidas wrote: >> >>If a writeprotected floppy can't be mounted writable it's >> >>sufficient. >> > >> >The patch prevents read-write mounts of read-only floppies: >> *snip* >> >: orion# mount -t ufs /dev/fd0 /mnt >> >: mount: /dev/fd0: Read-only file system >> >> Would a more optimal solution be to show a warning indicating that the >> disk was write-protected, and proceed to mount the filesystem read-only? >> This may be a ridiculous proposal - I don't know enough about the code >> in question to say - but it was just a thought! :-) No. If mount(8) doesn't do exactly what you asked for it fails solid and do nothing. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.