Subject: Re: Retrieving the disk label
To: Bruce Martin <BruceM@cat.co.za>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 08/04/1999 13:19:55
On Wed, Aug 04, 1999 at 11:40:49AM +0200, Bruce Martin wrote:
> I need to retrieve the disk label from a C/C++ program - not the entire
> disk statistics, but just the actual name the disk was labeled with. I
> have a brute force method of scanning through a captured disklabel file
> for this field, but am wondering if there is an elegant way to retrieve
> the disk label only.

Why don't you just steal some code from src/sbin/disklabel/ ?
It's one of the advantages of open source OSes ! :)

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--