-/* $OpenBSD: subr_disk.c,v 1.11 1997/02/24 14:19:57 niklas Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.12 1997/04/06 20:59:40 deraadt Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
bq->b_actf = bp;
}
-/* encoding of disk minor numbers, should be elsewhere... */
-#define dkunit(dev) (minor(dev) >> 3)
-#define dkpart(dev) (minor(dev) & 07)
-#define dkminor(unit, part) (((unit) << 3) | (part))
-
/*
* Compute checksum for disk label.
*/
int pri, blkdone;
register struct disklabel *lp;
{
- int unit = dkunit(bp->b_dev), part = dkpart(bp->b_dev);
+ int unit = DISKUNIT(bp->b_dev), part = DISKPART(bp->b_dev);
register int (*pr) __P((const char *, ...));
char partname = 'a' + part;
int sn;