NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/54822: it is hard to get rid of disklabels
The following reply was made to PR bin/54822; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/54822: it is hard to get rid of disklabels
Date: Wed, 1 Jan 2020 15:26:52 -0000 (UTC)
martin%NetBSD.org@localhost writes:
>When a disk has a valid disklabel, and the kernel has read it once
>already, it is pretty hard to get rid of it again.
>Example output:
># disklabel -D vnd0
This behaviour can be controlled with 'dkctl keeplabel' and,
by default, is only enabled for the vnd driver.
sc = vnd_spawn(unit);
if (sc == NULL)
return ENOMEM;
/* compatibility, keep disklabel after close */
sc->sc_flags = VNF_KLABEL;
I have no idea where that compatibility is required or wanted.
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index