tech-kern archive

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

Re: Tell a real disklabel apart from a fictious one



On Wed, May 14, 2008 at 12:08:09PM +0200, Martin Husemann wrote:
  | If I do ioctl(DIOCGDINFO) on a disk device, is there any better way to tell
  | this is a real label or one made up by the kernel besides 
  | 
  |     if (strcmp("default label", lab.d_packname)==0)

Have you compared it against the label returned by DIOCGDEFLABEL ?


cheers,
Luke.

Attachment: pgpQWUwOJVWHb.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index