Subject: Re: fdisk -B
To: Aymeric Vincent <xmimic@free.fr>
From: Frank van der Linden <fvdl@wasabisystems.com>
List: port-i386
Date: 07/09/2001 22:45:03
On Mon, Jul 09, 2001 at 10:29:49PM +0200, Aymeric Vincent wrote:
> fdisk -B on a disk which has no NetBSD disklabel fails because it
> can't read said disklabel.

get_params() can't really return -1, because it tries DIOCGDEFLABEL
first, which should always succeed (it returns an initial label,
constructed from the disk parameters, without reading the "real" label).

If it is failing, something weird is happening on your system, or
your fdisk is out of date.. Can you check if it is really the
DIOCGDEFLABEL ioctl that fails?

- Frank