Date: Fri, 18 Aug 2000 08:04:18 +0200 From: Mark Murray <mark@grondar.za> To: brian@freebsd.org Cc: current@freebsd.org Subject: MAKEDEV broken Message-ID: <200008180604.e7I64Im02984@grimreaper.grondar.za>
index | next in thread | raw e-mail
Hi
It looks like a function got left out of MAKEDEV.
This seems to fix it:
Index: /usr/src/etc/MAKEDEV
===================================================================
RCS file: /home/ncvs/src/etc/MAKEDEV,v
retrieving revision 1.268
diff -u -d -r1.268 MAKEDEV
--- /usr/src/etc/MAKEDEV 2000/08/16 16:42:50 1.268
+++ /usr/src/etc/MAKEDEV 2000/08/18 06:01:10
@@ -221,6 +221,12 @@
echo $(((($1 >> 8) << 16) | ($1 % 256)))
}
+# Convert a minor number to a unit number.
+minor2unit()
+{
+ echo $(((($1 >> 16) << 8) | ($1 % 256)))
+}
+
# Raw partition for disks
dkrawpart=2
M
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008180604.e7I64Im02984>
