Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc As discussed at the biginning of last week (June 6 & 7, ...



details:   https://anonhg.NetBSD.org/src/rev/994c190b2e05
branches:  trunk
changeset: 816093:994c190b2e05
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Jun 16 15:33:38 2016 +0000

description:
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

diffstat:

 etc/MAKEDEV.tmpl |  21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diffs (64 lines):

diff -r d419e3b14cbb -r 994c190b2e05 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Thu Jun 16 15:21:49 2016 +0000
+++ b/etc/MAKEDEV.tmpl  Thu Jun 16 15:33:38 2016 +0000
@@ -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 @@
 {
        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 @@
        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 @@
 {
        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 @@
        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 @@
        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



Home | Main Index | Thread Index | Old Index