Move dkmodpart() from subr_diskslice.c to subr_disklabel.c.
This commit is contained in:
parent
4b6c29cebc
commit
e948321c7a
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user