Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 1996 20:36:39 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        charnier@lirmm.fr (Philippe Charnier)
Cc:        bugs@freebsd.org
Subject:   Re: mkdosfs
Message-ID:  <199601291936.UAA08973@uriah.heep.sax.de>
In-Reply-To: <199601291224.NAA09726@lirmm.lirmm.fr> from "Philippe Charnier" at Jan 29, 96 01:24:52 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601291936.UAA08973>