Whine at users who still have block devices in /dev, give them until

june 1st to fix their system.
This commit is contained in:
Poul-Henning Kamp 2000-03-21 19:25:56 +00:00
parent 19cada7779
commit e004067750

View File

@ -259,6 +259,7 @@ dev2udev(dev_t x)
dev_t dev_t
udev2dev(udev_t x, int b) udev2dev(udev_t x, int b)
{ {
static int whine;
if (x == NOUDEV) if (x == NOUDEV)
return (NODEV); return (NODEV);
@ -266,6 +267,10 @@ udev2dev(udev_t x, int b)
case 0: case 0:
return makedev(umajor(x), uminor(x)); return makedev(umajor(x), uminor(x));
case 1: case 1:
if (!whine) {
printf("WARNING: run /dev/MAKEDEV to get rid of block devices before 2000-06-01\n");
whine++;
}
return makebdev(umajor(x), uminor(x)); return makebdev(umajor(x), uminor(x));
default: default:
Debugger("udev2dev(...,X)"); Debugger("udev2dev(...,X)");