Module Name:    src
Committed By:   kre
Date:           Thu Jun 16 15:33:39 UTC 2016

Modified Files:
        src/etc: MAKEDEV.tmpl

Log Message:
As discussed at the biginning of last week (June 6 & 7, 2016) on
tech-kern in messages with a Subject starting [Re:] /dev/sdN -> /dev/sdN[cd]
and in PR port-amd64/51216 :

Create bare (no letter suffix) device names (block & raw) that
refer to the raw device ('c' or 'd' partition as appropriate).

This commit was delayed waiting to see if there was to be any more
discussion - there wasn't a lot.

Caution: this is going to consume 2 more inodes per disc device
configured, everywhere that devices are configured using MAKEDEV


To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 src/etc/MAKEDEV.tmpl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/MAKEDEV.tmpl
diff -u src/etc/MAKEDEV.tmpl:1.180 src/etc/MAKEDEV.tmpl:1.181
--- src/etc/MAKEDEV.tmpl:1.180	Sat Jun  4 16:11:50 2016
+++ src/etc/MAKEDEV.tmpl	Thu Jun 16 15:33:38 2016
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#	$NetBSD: MAKEDEV.tmpl,v 1.180 2016/06/04 16:11:50 nonaka Exp $
+#	$NetBSD: MAKEDEV.tmpl,v 1.181 2016/06/16 15:33:38 kre Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -2252,6 +2252,10 @@ makedisk_p8()
 {
 	name="$1"; unit="$2"; blk="$3"; chr="$4"
 
+	ro=%RAWDISK_OFF%
+	mkdev ${name}${unit}	b $blk $(($unit * 8 + $ro))	640 $g_operator
+	mkdev r${name}${unit}	c $chr $(($unit * 8 + $ro))	640 $g_operator
+
 	mkdev ${name}${unit}a	b $blk $(($unit * 8 + 0))	640 $g_operator
 	mkdev ${name}${unit}b	b $blk $(($unit * 8 + 1))	640 $g_operator
 	mkdev ${name}${unit}c	b $blk $(($unit * 8 + 2))	640 $g_operator
@@ -2275,6 +2279,10 @@ makedisk_p12high()
 	ho=524280	# offset for partition 9 to 11 (same as ...p16high)
 	name="$1"; unit="$2"; blk="$3"; chr="$4"
 
+	ro=%RAWDISK_OFF%
+	mkdev ${name}${unit}	b $blk $(($unit * 8 + $ro))	640 $g_operator
+	mkdev r${name}${unit}	c $chr $(($unit * 8 + $ro))	640 $g_operator
+
 	mkdev ${name}${unit}a	b $blk $(($unit * 8 + 0))	640 $g_operator
 	mkdev ${name}${unit}b	b $blk $(($unit * 8 + 1))	640 $g_operator
 	mkdev ${name}${unit}c	b $blk $(($unit * 8 + 2))	640 $g_operator
@@ -2305,6 +2313,10 @@ makedisk_p16()
 {
 	name="$1"; unit="$2"; blk="$3"; chr="$4"
 
+	ro=%RAWDISK_OFF%
+	mkdev ${name}${unit}	b $blk $(($unit * 16 + $ro))	640 $g_operator
+	mkdev r${name}${unit}	c $chr $(($unit * 16 + $ro))	640 $g_operator
+
 	mkdev ${name}${unit}a	b $blk $(($unit * 16 + 0))	640 $g_operator
 	mkdev ${name}${unit}b	b $blk $(($unit * 16 + 1))	640 $g_operator
 	mkdev ${name}${unit}c	b $blk $(($unit * 16 + 2))	640 $g_operator
@@ -2344,6 +2356,10 @@ makedisk_p16high()
 	ho=524280	# offset for partition 9 to 16
 	name="$1"; unit="$2"; blk="$3"; chr="$4"
 
+	ro=%RAWDISK_OFF%
+	mkdev ${name}${unit}	b $blk $(($unit * 8 + $ro))	640 $g_operator
+	mkdev r${name}${unit}	c $chr $(($unit * 8 + $ro))	640 $g_operator
+
 	mkdev ${name}${unit}a	b $blk $(($unit * 8 + 0))	640 $g_operator
 	mkdev ${name}${unit}b	b $blk $(($unit * 8 + 1))	640 $g_operator
 	mkdev ${name}${unit}c	b $blk $(($unit * 8 + 2))	640 $g_operator
@@ -2387,6 +2403,9 @@ makedisk_minimal()
 	ro=%RAWDISK_OFF%
 	rn=%RAWDISK_NAME%
 
+	mkdev ${name}${unit}	b $blk $(($unit * $doff + $ro))	640 $g_operator
+	mkdev r${name}${unit}	c $chr $(($unit * $doff + $ro))	640 $g_operator
+
 	mkdev ${name}${unit}a	b $blk $(($unit * $doff + 0))	640 $g_operator
 	mkdev ${name}${unit}$rn b $blk $(($unit * $doff + $ro)) 640 $g_operator
 	mkdev r${name}${unit}a	c $chr $(($unit * $doff + 0))	640 $g_operator

Reply via email to