From owner-freebsd-bugs Mon Jan 29 12:19:30 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA29363 for bugs-outgoing; Mon, 29 Jan 1996 12:19:30 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA29176 for ; Mon, 29 Jan 1996 12:17:51 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id VAA18622; Mon, 29 Jan 1996 21:16:48 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id VAA23638; Mon, 29 Jan 1996 21:16:48 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id UAA08973; Mon, 29 Jan 1996 20:36:39 +0100 (MET) From: J Wunsch Message-Id: <199601291936.UAA08973@uriah.heep.sax.de> Subject: Re: mkdosfs To: charnier@lirmm.fr (Philippe Charnier) Date: Mon, 29 Jan 1996 20:36:39 +0100 (MET) Cc: bugs@freebsd.org In-Reply-To: <199601291224.NAA09726@lirmm.lirmm.fr> from "Philippe Charnier" at Jan 29, 96 01:24:52 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-bugs@freebsd.org Precedence: bulk As Philippe Charnier wrote: > > > Add 1440 as the default value for the -f flag, so this flag is no longer > mandatory. According to the man page and the usage string, this flag is > said to be optionnal. The man page is incorrect. :) I'm dual-minded about this change. I think it's better to have no default at all than a potentially wrong default. Somebody innocently formatting a 5žin floppy to 1440 KB is more harm done than somebody calling mkdosfs without arguments, and seeing a `usage' message. The best of course is to figure out the size of the floppy, e.g. by seeking to the last block and see if the kernel would return an error. However, i'm not sure about the effects when applying it to a disk file. Perhaps auto-detection should only be done when operating on a raw device. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)