Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD guests won't boot with netbsd-9 DOM0



On Wed, Oct 16, 2019 at 03:59:36PM +0200, Jaromír Dole?ek wrote:

> This should fix it, different way than cgd in kern/41704:
> https://www.netbsd.org/~jdolecek/xbd_disklabel_fix.diff

sc_dksc.sc_dev is a device_t (pointer to device structure) not
a dev_t (device/unit/partition number).

These error messages also came from the guest which seems to be
a netbsd-8 or older.

On the other hand a dev_t of 0 is wd0a, this shouldn't exist on
a PVM guest and you should get a default label, and not something
that reflects the geometry of xbd0.

In any case, reading the disklabel in this place is wrong and
can just be dropped. The disklabel is read in the open routine
and has a specific semantic there.



Home | Main Index | Thread Index | Old Index