[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/37846: fdisk default argument is sometimes wrong
The following reply was made to PR bin/37846; it has been noted by GNATS.
From: Antti Kantee <pooka%cs.hut.fi@localhost>
Subject: Re: bin/37846: fdisk default argument is sometimes wrong
Date: Wed, 23 Jan 2008 12:23:22 +0200
On Wed Jan 23 2008 at 06:45:00 +0000, Tim Rightnour wrote:
> While netbooting my ofppc machine on NetBSD 4.99.49, I accidentally ran
> fdisk -u and forgot the disk argument, and was presented with this little
> # fdisk -u
> fdisk: /dev/rpcn0c: No such file or directory
> my network device is a pcn0, and thats what I've mounted root via.
> boot with NFS root, run fdisk.
What would you want it to do? Fail with usage if the default can't be
opened? Present different usage if the default device is there or not?
Remove the default disk functionality completely? Scan for the "first"
disktype device? ... read your mind to guess the device you wanted to
Apart from maybe the last one (which is slightly difficult to implement),
I don't see anything to do to improve the situation in a way which
wouldn't be confusing from some aspect. It would nice to always require
the device argument, but that would doubtless break someone's scripts.
Antti Kantee <pooka%iki.fi@localhost> Of course he runs
"la qualité la plus indispensable du cuisinier est l'exactitude"
Main Index |
Thread Index |