Source-Changes-HG archive

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

[src/trunk]: src/etc - rename (revert) normal memory disk device name /dev/md...



details:   https://anonhg.NetBSD.org/src/rev/d590eb41f46d
branches:  trunk
changeset: 480830:d590eb41f46d
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Jan 21 12:28:22 2000 +0000

description:
- rename (revert) normal memory disk device name /dev/mdX -> /dev/mdXa
 - now raw partitions are used for memory disk ioctls

diffstat:

 etc/etc.alpha/MAKEDEV    |  15 ++++++++-------
 etc/etc.amiga/MAKEDEV    |  15 ++++++++-------
 etc/etc.atari/MAKEDEV    |  15 ++++++++-------
 etc/etc.bebox/MAKEDEV    |  15 ++++++++-------
 etc/etc.hp300/MAKEDEV    |  15 ++++++++-------
 etc/etc.hpcmips/MAKEDEV  |  15 ++++++++-------
 etc/etc.i386/MAKEDEV     |  15 ++++++++-------
 etc/etc.luna68k/MAKEDEV  |  16 +++++++++++++---
 etc/etc.mac68k/MAKEDEV   |  15 ++++++++-------
 etc/etc.macppc/MAKEDEV   |  15 ++++++++-------
 etc/etc.mmeye/MAKEDEV    |  22 +++++++++-------------
 etc/etc.news68k/MAKEDEV  |  17 +++++++++--------
 etc/etc.newsmips/MAKEDEV |  17 +++++++++--------
 etc/etc.next68k/MAKEDEV  |  15 ++++++++-------
 etc/etc.pc532/MAKEDEV    |  15 ++++++++-------
 etc/etc.pmax/MAKEDEV     |  15 ++++++++-------
 etc/etc.sparc/MAKEDEV    |  15 ++++++++-------
 etc/etc.sparc64/MAKEDEV  |  15 ++++++++-------
 etc/etc.sun3/MAKEDEV     |   9 +++++----
 etc/etc.vax/MAKEDEV      |  15 ++++++++-------
 etc/etc.x68k/MAKEDEV     |  15 ++++++++-------
 21 files changed, 173 insertions(+), 148 deletions(-)

diffs (truncated from 664 to 300 lines):

diff -r 49e469a30736 -r d590eb41f46d etc/etc.alpha/MAKEDEV
--- a/etc/etc.alpha/MAKEDEV     Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.alpha/MAKEDEV     Fri Jan 21 12:28:22 2000 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV,v 1.55 2000/01/20 17:13:27 mjacob Exp $
+#      $NetBSD: MAKEDEV,v 1.56 2000/01/21 12:28:22 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -245,12 +245,13 @@
 
 md*)
        unit=${i#md}; blk=6; chr=28;
-       rm -f md${unit} md${unit}c rmd${unit}
-       mknod md${unit}  b $blk $((($unit +  0) * 8))
-       mknod md${unit}c b $blk $((($unit + 16) * 8))
-#      mknod rmd${unit} c $chr $((($unit + 16) * 8))
-       chgrp operator md${unit} md${unit}c #rmd${unit}
-       chmod 640 md${unit} md${unit}c #rmd${unit}
+       rm -f md${unit}? rmd${unit}?
+       mknod md${unit}a  b $blk $(($unit * 8 + 0))
+       mknod md${unit}c  b $blk $(($unit * 8 + 2))
+#      mknod rmd${unit}a c $chr $(($unit * 8 + 0))
+#      mknod rmd${unit}c c $chr $(($unit * 8 + 2))
+       chgrp operator md${unit}? #rmd${unit}?
+       chmod 640 md${unit}? #rmd${unit}?
        ;;      
 
 ccd*|cd*|fd*|raid*|sd*|vnd*|wd*)
diff -r 49e469a30736 -r d590eb41f46d etc/etc.amiga/MAKEDEV
--- a/etc/etc.amiga/MAKEDEV     Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.amiga/MAKEDEV     Fri Jan 21 12:28:22 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.53 1999/12/18 03:09:45 tsutsui Exp $
+#      $NetBSD: MAKEDEV,v 1.54 2000/01/21 12:28:23 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -190,12 +190,13 @@
        ;;
 md*)
        unit={$i#md}; blk=15; chr=43;
-       rm -rf md${unit} md${unit}c rmd${unit}
-       mknod md${unit}  b $blk $((($unit +  0) * 16))
-       mknod md${unit}c b $blk $((($unit + 16) * 16))
-#      mknod rmd${unit} c $chr $((($unit + 16) * 16))
-       chgrp operator md${unit} md${unit}c #rmd${unit}
-       chmod 640 md${unit} md${unit}c #rmd${unit}
+       rm -f md${unit}? rmd${unit}?
+       mknod md${unit}a  b $blk $(($unit * 16 + 0))
+       mknod md${unit}c  b $blk $(($unit * 16 + 2))
+#      mknod rmd${unit}a c $chr $(($unit * 16 + 0))
+#      mknod rmd${unit}c c $chr $(($unit * 16 + 2))
+       chgrp operator md${unit}? #rmd${unit}?
+       chmod 640 md${unit}? #rmd${unit}?
        ;;
 
 sd*|vnd*|ccd*|raid*)
diff -r 49e469a30736 -r d590eb41f46d etc/etc.atari/MAKEDEV
--- a/etc/etc.atari/MAKEDEV     Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.atari/MAKEDEV     Fri Jan 21 12:28:22 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.39 1999/12/18 03:09:46 tsutsui Exp $
+#      $NetBSD: MAKEDEV,v 1.40 2000/01/21 12:28:23 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -233,12 +233,13 @@
 
 md*)   # Memory disk
        unit=${i#md}; blk=1; chr=37;
-       rm -f md${unit} md${unit}c rmd${unit}
-       mknod md${unit}  b $blk $((($unit +  0) * 16))
-       mknod md${unit}c b $blk $((($unit + 16) * 16))
-#      mknod md${unit}  c $chr $((($unit + 16) * 16))
-       chgrp operator md${unit} md${unit}c #rmd${unit}
-       chmod 640 md${unit} md${unit}c #rmd${unit}
+       rm -f md${unit}? rmd${unit}?
+       mknod md${unit}a  b $blk $(($unit * 16 + 0))
+       mknod md${unit}c  b $blk $(($unit * 16 + 2))
+#      mknod rmd${unit}a c $chr $(($unit * 16 + 0))
+#      mknod rmd${unit}c c $chr $(($unit * 16 + 2))
+       chgrp operator md${unit}? #rmd${unit}?
+       chmod 640 md${unit}? #rmd${unit}?
        ;;
 
 ss*)   # SCSI changer
diff -r 49e469a30736 -r d590eb41f46d etc/etc.bebox/MAKEDEV
--- a/etc/etc.bebox/MAKEDEV     Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.bebox/MAKEDEV     Fri Jan 21 12:28:22 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.10 1999/12/18 03:09:46 tsutsui Exp $
+#      $NetBSD: MAKEDEV,v 1.11 2000/01/21 12:28:24 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -232,12 +232,13 @@
 
 md*)
        unit=${i#md}; blk=17; chr=24;
-       rm -f md${unit} md${unit}c rmd${unit}
-       mknod md${unit}  b $blk $((($unit +  0) * 8))
-       mknod md${unit}c b $blk $((($unit + 16) * 8))
-#      mknod rmd${unit} c $chr $((($unit + 16) * 8))
-       chgrp operator md${unit} md${unit}c #rmd${unit}
-       chmod 640 md${unit} md${unit}c #rmd${unit}
+       rm -f md${unit}? rmd${unit}?
+       mknod md${unit}a  b $blk $(($unit * 8 + 0))
+       mknod md${unit}c  b $blk $(($unit * 8 + 2))
+#      mknod rmd${unit}a c $chr $(($unit * 8 + 0))
+#      mknod rmd${unit}c c $chr $(($unit * 8 + 2))
+       chgrp operator md${unit}? #rmd${unit}?
+       chmod 640 md${unit}? #rmd${unit}?
        ;;
 
 ss*)
diff -r 49e469a30736 -r d590eb41f46d etc/etc.hp300/MAKEDEV
--- a/etc/etc.hp300/MAKEDEV     Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.hp300/MAKEDEV     Fri Jan 21 12:28:22 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.31 1999/12/18 03:09:46 tsutsui Exp $
+#      $NetBSD: MAKEDEV,v 1.32 2000/01/21 12:28:24 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -183,12 +183,13 @@
 
 md*)
        unit=${i#md}; blk=14; chr=32;
-       rm -f md${unit} md${unit}c rmd${unit}
-       mknod md${unit}  b $blk $((($unit +  0) * 8))
-       mknod md${unit}c b $blk $((($unit + 16) * 8))
-#      mknod md${unit}  c $chr $((($unit + 16) * 8))
-       chgrp operator md${unit} md${unit}c #rmd${unit}
-       chmod 640 md${unit} md${unit}c #rmd${unit}
+       rm -f md${unit}? rmd${unit}?
+       mknod md${unit}a  b $blk $(($unit * 8 + 0))
+       mknod md${unit}c  b $blk $(($unit * 8 + 2))
+#      mknod rmd${unit}a c $chr $(($unit * 8 + 0))
+#      mknod rmd${unit}c c $chr $(($unit * 8 + 2))
+       chgrp operator md${unit}? #rmd${unit}?
+       chmod 640 md${unit}? #rmd${unit}?
        ;;
 
 ccd*|fd*|raid*|rd*|sd*|vnd*)
diff -r 49e469a30736 -r d590eb41f46d etc/etc.hpcmips/MAKEDEV
--- a/etc/etc.hpcmips/MAKEDEV   Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.hpcmips/MAKEDEV   Fri Jan 21 12:28:22 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.6 1999/12/18 03:09:47 tsutsui Exp $
+#      $NetBSD: MAKEDEV,v 1.7 2000/01/21 12:28:24 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -243,12 +243,13 @@
 
 md*)
        unit=${i#md}; blk=6; chr=12;
-       rm -f md${unit} md${unit}c rmd${unit}
-       mknod md${unit}  b $blk $((($unit +  0) * 8))
-       mknod md${unit}c b $blk $((($unit + 16) * 8))
-#      mknod rmd${unit} c $chr $((($unit + 16) * 8))
-       chgrp operator md${unit} md${unit}c #rmd${unit}
-       chmod 640 md${unit} md${unit}c #rmd${unit}
+       rm -f md${unit}? rmd${unit}?
+       mknod md${unit}a  b $blk $(($unit * 8 + 0))
+       mknod md${unit}c  b $blk $(($unit * 8 + 2))
+#      mknod rmd${unit}a c $chr $(($unit * 8 + 0))
+#      mknod rmd${unit}c c $chr $(($unit * 8 + 2))
+       chgrp operator md${unit}? #rmd${unit}?
+       chmod 640 md${unit}? #rmd${unit}?
        ;;      
 
 ss*)
diff -r 49e469a30736 -r d590eb41f46d etc/etc.i386/MAKEDEV
--- a/etc/etc.i386/MAKEDEV      Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.i386/MAKEDEV      Fri Jan 21 12:28:22 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.99 2000/01/09 02:37:06 itojun Exp $
+#      $NetBSD: MAKEDEV,v 1.100 2000/01/21 12:28:25 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -337,12 +337,13 @@
 
 md*)
        unit=${i#md}; blk=17; chr=24;
-       rm -f md${unit} md${unit}c rmd${unit}
-       mknod md${unit}  b $blk $((($unit +  0) * 8))
-       mknod md${unit}c b $blk $((($unit + 16) * 8))
-#      mknod rmd${unit} c $chr $((($unit + 16) * 8))
-       chgrp operator md${unit} md${unit}c #rmd${unit}
-       chmod 640 md${unit} md${unit}c #rmd${unit}
+       rm -f md${unit}? rmd${unit}?
+       mknod md${unit}a  b $blk $(($unit * 8 + 0))
+       mknod md${unit}d  b $blk $(($unit * 8 + 3))
+#      mknod rmd${unit}a c $chr $(($unit * 8 + 0))
+#      mknod rmd${unit}d c $chr $(($unit * 8 + 3))
+       chgrp operator md${unit}? #rmd${unit}?
+       chmod 640 md${unit}? #rmd${unit}?
        ;;      
 
 ss*)
diff -r 49e469a30736 -r d590eb41f46d etc/etc.luna68k/MAKEDEV
--- a/etc/etc.luna68k/MAKEDEV   Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.luna68k/MAKEDEV   Fri Jan 21 12:28:22 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.2 2000/01/13 01:06:24 nisimura Exp $
+#      $NetBSD: MAKEDEV,v 1.3 2000/01/21 12:28:25 tsutsui Exp $
 #
 # Device "make" file.  Valid arguments:
 #      std     standard devices
@@ -73,11 +73,21 @@
        chmod 666 fd/*
        ;;
 
-ccd*|cd*|md*|raid*|sd*|vnd*)
+md*)
+       unit=${i#md};   blk=7; chr=16;;
+       rm -rf md${unit}? rmd${unit}?
+       mknod md${unit}a  b $blk $(($unit * 8 + 0))
+       mknod md${unit}c  b $blk $(($unit * 8 + 2))
+#      mknod rmd${unit}a c $blk $(($unit * 8 + 0))
+#      mknod rmd${unit}c c $blk $(($unit * 8 + 2))
+       chgrp operator md${unit}? #rmd${unit}?
+       chmod 640 md${unit}? #rmd${unit}?
+       ;;
+
+ccd*|cd*|raid*|sd*|vnd*)
        case $i in
        ccd*)   name=ccd;       unit=${i#ccd};  blk=5; chr=14;;
        cd*)    name=cd;        unit=${i#cd};   blk=4; chr=10;;
-       md*)    name=md;        unit=${i#md};   blk=7; chr=16;;
        raid*)  name=raid;      unit=${i#raid}; blk=14; chr=32;;
        sd*)    name=sd;        unit=${i#sd};   blk=2; chr=8;;
        vnd*)   name=vnd;       unit=${i#vnd};  blk=6; chr=15;;
diff -r 49e469a30736 -r d590eb41f46d etc/etc.mac68k/MAKEDEV
--- a/etc/etc.mac68k/MAKEDEV    Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.mac68k/MAKEDEV    Fri Jan 21 12:28:22 2000 +0000
@@ -20,7 +20,7 @@
 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 #
 #      from: @(#)MAKEDEV       5.2 (Berkeley) 6/22/90
-#      $NetBSD: MAKEDEV,v 1.45 1999/12/18 03:09:47 tsutsui Exp $
+#      $NetBSD: MAKEDEV,v 1.46 2000/01/21 12:28:25 tsutsui Exp $
 #
 ###########################################################################
 #
@@ -153,12 +153,13 @@
 
 md*)
        unit=${i#md}; blk=13; chr=32;
-       rm -f md${unit} md${unit}c rmd${unit}
-       mknod md${unit}  b $blk $((($unit +  0) * 8))
-       mknod md${unit}c b $blk $((($unit + 16) * 8))
-#      mknod rmd${unit} c $chr $((($unit + 16) * 8))
-       chgrp operator md${unit} md${unit}c #rmd${unit}
-       chmod 640 md${unit} md${unit}c #rmd${unit}
+       rm -f md${unit}? rmd${unit}?
+       mknod md${unit}a  b $blk $(($unit * 8 + 0))
+       mknod md${unit}c  b $blk $(($unit * 8 + 2))
+#      mknod rmd${unit}a c $chr $(($unit * 8 + 0))
+#      mknod rmd${unit}c c $chr $(($unit * 8 + 2))
+       chgrp operator md${unit}? #rmd${unit}?
+       chmod 640 md${unit}? #rmd${unit}?
        ;;      
 
 ss*)
diff -r 49e469a30736 -r d590eb41f46d etc/etc.macppc/MAKEDEV
--- a/etc/etc.macppc/MAKEDEV    Fri Jan 21 12:14:53 2000 +0000
+++ b/etc/etc.macppc/MAKEDEV    Fri Jan 21 12:28:22 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.23 1999/12/18 03:09:48 tsutsui Exp $
+#      $NetBSD: MAKEDEV,v 1.24 2000/01/21 12:28:26 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -373,12 +373,13 @@
 
 md*)
        unit=${i#md}; blk=9; chr=27;
-       rm -f md${unit} md${unit}c rmd${unit}
-       mknod md${unit}  b $blk $((($unit +  0) * 16))



Home | Main Index | Thread Index | Old Index