Move dkmodpart() from subr_diskslice.c to subr_disklabel.c.

This commit is contained in:
Poul-Henning Kamp 2003-01-17 19:05:58 +00:00
parent 4b6c29cebc
commit e948321c7a
2 changed files with 6 additions and 6 deletions

View File

@ -50,6 +50,12 @@
#include <sys/disklabel.h>
#include <sys/syslog.h>
dev_t
dkmodpart(dev_t dev, int part)
{
return (makedev(major(dev), (minor(dev) & ~7) | part));
}
/*
* Attempt to read a disk label from a device using the indicated strategy
* routine. The label must be partly set up before this: secpercyl, secsize

View File

@ -124,12 +124,6 @@ clone_label(lp)
return (lp1);
}
dev_t
dkmodpart(dev_t dev, int part)
{
return (makedev(major(dev), (minor(dev) & ~7) | part));
}
dev_t
dkmodslice(dev_t dev, int slice)
{