Browse Source

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.
Old svndX nodes will still continue to work though, for now.
Cleanup accordingly.
ok deraadt@, todd@
comments and ok on the man page bits from jmc@
OPENBSD_5_0
thib 13 years ago
parent
commit
53ad0f2a2f
27 changed files with 80 additions and 115 deletions
  1. +2
    -3
      src/etc/MAKEDEV.common
  2. +2
    -2
      src/etc/MAKEDEV.mi
  3. +0
    -1
      src/etc/etc.alpha/MAKEDEV
  4. +0
    -1
      src/etc/etc.amd64/MAKEDEV
  5. +0
    -1
      src/etc/etc.armish/MAKEDEV
  6. +0
    -1
      src/etc/etc.aviion/MAKEDEV
  7. +0
    -1
      src/etc/etc.hp300/MAKEDEV
  8. +0
    -1
      src/etc/etc.hppa/MAKEDEV
  9. +0
    -1
      src/etc/etc.hppa64/MAKEDEV
  10. +2
    -2
      src/etc/etc.i386/INSTALL.linux
  11. +0
    -1
      src/etc/etc.i386/MAKEDEV
  12. +0
    -1
      src/etc/etc.landisk/MAKEDEV
  13. +0
    -1
      src/etc/etc.loongson/MAKEDEV
  14. +0
    -1
      src/etc/etc.luna88k/MAKEDEV
  15. +0
    -1
      src/etc/etc.mac68k/MAKEDEV
  16. +0
    -1
      src/etc/etc.macppc/MAKEDEV
  17. +0
    -1
      src/etc/etc.mvme68k/MAKEDEV
  18. +0
    -1
      src/etc/etc.mvme88k/MAKEDEV
  19. +37
    -43
      src/etc/etc.mvmeppc/MAKEDEV
  20. +37
    -43
      src/etc/etc.mvmeppc/MAKEDEV.md
  21. +0
    -1
      src/etc/etc.palm/MAKEDEV
  22. +0
    -1
      src/etc/etc.sgi/MAKEDEV
  23. +0
    -1
      src/etc/etc.socppc/MAKEDEV
  24. +0
    -1
      src/etc/etc.sparc/MAKEDEV
  25. +0
    -1
      src/etc/etc.sparc64/MAKEDEV
  26. +0
    -1
      src/etc/etc.vax/MAKEDEV
  27. +0
    -1
      src/etc/etc.zaurus/MAKEDEV

+ 2
- 3
src/etc/MAKEDEV.common View File

@ -1,4 +1,4 @@
vers(a, {-$OpenBSD: MAKEDEV.common,v 1.53 2010/09/30 15:27:54 claudio Exp $-})dnl
vers(a, {-$OpenBSD: MAKEDEV.common,v 1.54 2011/04/18 16:52:10 thib Exp $-})dnl
dnl
dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org>
dnl
@ -283,8 +283,7 @@ __devitem(wd, {-wd*-}, {-quote(winchester)disk drives (ST506{-,-} IDE{-,-} ESDI{
__devitem(ccd, ccd*, Concatenated disk devices)dnl
__devitem(raid, raid*, RAIDframe disk devices)dnl
__devitem(vnd, vnd*, quote(file)pseudo-disk devices)dnl
_mkdev(vnd, vnd*, {-dodisk vnd $U major_vnd_b major_vnd_c $U 0{--}ifstep(vnd)
dodisk svnd $U major_vnd_b major_vnd_c $U 2048{--}ifstep(vnd)-})dnl
_mkdev(vnd, vnd*, {-dodisk vnd $U major_vnd_b major_vnd_c $U 0{--}ifstep(vnd)-})dnl
__devitem(ra, ra*, {-MSCP disks-})dnl
__devitem(hp, hp*, {-MASSBUS disks-})dnl
__devitem(hk, hk*, {-UNIBUS RK06 and RK07 disks-})dnl


+ 2
- 2
src/etc/MAKEDEV.mi View File

@ -1,7 +1,7 @@
define(COMM,`#')dnl
include(MAKEDEV.sub)dnl
dnl
vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.79 2009/01/25 17:30:48 miod Exp $-})dnl
vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.80 2011/04/18 16:52:10 thib Exp $-})dnl
dnl
divert(1)dnl
{-#-}
@ -152,7 +152,7 @@ dnl 2. unit - beginning unit number for block devices
dnl 3. blkmaj - block device major number
dnl 4. chrmaj - character device major number
dnl 5. unit - beginning unit number for character devices
dnl 6. off - offset from 0 for all minor numbers (see svnd for an example)
dnl 6. off - offset from 0 for all minor numbers
dnl 7. step - optional, defaults to 16, number of partitions per device
dnl


+ 0
- 1
src/etc/etc.alpha/MAKEDEV View File

@ -511,7 +511,6 @@ ch*)
vnd*)
dodisk vnd $U 9 9 $U 0
dodisk svnd $U 9 9 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.amd64/MAKEDEV View File

@ -542,7 +542,6 @@ ch*)
vnd*)
dodisk vnd $U 14 41 $U 0
dodisk svnd $U 14 41 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.armish/MAKEDEV View File

@ -482,7 +482,6 @@ st*)
vnd*)
dodisk vnd $U 19 19 $U 0
dodisk svnd $U 19 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.aviion/MAKEDEV View File

@ -320,7 +320,6 @@ ch*)
vnd*)
dodisk vnd $U 8 19 $U 0
dodisk svnd $U 8 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.hp300/MAKEDEV View File

@ -446,7 +446,6 @@ ch*)
vnd*)
dodisk vnd $U 6 19 $U 0
dodisk svnd $U 6 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.hppa/MAKEDEV View File

@ -459,7 +459,6 @@ ch*)
vnd*)
dodisk vnd $U 2 8 $U 0
dodisk svnd $U 2 8 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.hppa64/MAKEDEV View File

@ -449,7 +449,6 @@ ch*)
vnd*)
dodisk vnd $U 2 8 $U 0
dodisk svnd $U 2 8 $U 2048
;;
rd*)


+ 2
- 2
src/etc/etc.i386/INSTALL.linux View File

@ -1,4 +1,4 @@
$OpenBSD: INSTALL.linux,v 1.15 2010/02/22 10:44:07 giovanni Exp $
$OpenBSD: INSTALL.linux,v 1.16 2011/04/18 16:52:10 thib Exp $
Linux + OpenBSD: it's possible
@ -55,7 +55,7 @@ contents are unimportant (or whose backups are always up-to-date) next to
the frontier between OpenBSD and Linux. For instance, it's usually a good
idea to locate the swap area such that you can grow or shrink it. Keep in
mind that exceptional usage (very large, temporary swaps) can use a
temporary file instead of a partition, under both OpenBSD (svnd) and Linux.
temporary file instead of a partition, under both OpenBSD (vnd) and Linux.
First principles
----------------


+ 0
- 1
src/etc/etc.i386/MAKEDEV View File

@ -553,7 +553,6 @@ ch*)
vnd*)
dodisk vnd $U 14 41 $U 0
dodisk svnd $U 14 41 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.landisk/MAKEDEV View File

@ -458,7 +458,6 @@ st*)
vnd*)
dodisk vnd $U 19 19 $U 0
dodisk svnd $U 19 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.loongson/MAKEDEV View File

@ -442,7 +442,6 @@ ch*)
vnd*)
dodisk vnd $U 2 11 $U 0
dodisk svnd $U 2 11 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.luna88k/MAKEDEV View File

@ -354,7 +354,6 @@ ch*)
vnd*)
dodisk vnd $U 8 19 $U 0
dodisk svnd $U 8 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.mac68k/MAKEDEV View File

@ -374,7 +374,6 @@ ch*)
vnd*)
dodisk vnd $U 8 19 $U 0
dodisk svnd $U 8 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.macppc/MAKEDEV View File

@ -499,7 +499,6 @@ ch*)
vnd*)
dodisk vnd $U 14 19 $U 0
dodisk svnd $U 14 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.mvme68k/MAKEDEV View File

@ -403,7 +403,6 @@ ch*)
vnd*)
dodisk vnd $U 6 19 $U 0
dodisk svnd $U 6 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.mvme88k/MAKEDEV View File

@ -358,7 +358,6 @@ ch*)
vnd*)
dodisk vnd $U 8 19 $U 0
dodisk svnd $U 8 19 $U 2048
;;
rd*)


+ 37
- 43
src/etc/etc.mvmeppc/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $OpenBSD: MAKEDEV,v 1.13 2009/06/03 14:45:40 jj Exp $
# $OpenBSD: MAKEDEV,v 1.14 2011/04/18 16:52:11 thib Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -268,48 +268,42 @@ sd*|wd*|ccd*|ofdisk*|raid*)
vnd*)
umask 2 ; unit=${i##*[a-z]}
for name in vnd svnd; do
blk=14; chr=19;
case $name in
vnd) off=0;;
svnd) off=2048;;
esac
rm -f $name$unit? r$name$unit?
mknod ${name}${unit}a b $blk $(( $unit * 16 + $off + 0 ))
mknod ${name}${unit}b b $blk $(( $unit * 16 + $off + 1 ))
mknod ${name}${unit}c b $blk $(( $unit * 16 + $off + 2 ))
mknod ${name}${unit}d b $blk $(( $unit * 16 + $off + 3 ))
mknod ${name}${unit}e b $blk $(( $unit * 16 + $off + 4 ))
mknod ${name}${unit}f b $blk $(( $unit * 16 + $off + 5 ))
mknod ${name}${unit}g b $blk $(( $unit * 16 + $off + 6 ))
mknod ${name}${unit}h b $blk $(( $unit * 16 + $off + 7 ))
mknod ${name}${unit}i b $blk $(( $unit * 16 + $off + 8 ))
mknod ${name}${unit}j b $blk $(( $unit * 16 + $off + 9 ))
mknod ${name}${unit}k b $blk $(( $unit * 16 + $off + 10 ))
mknod ${name}${unit}l b $blk $(( $unit * 16 + $off + 11 ))
mknod ${name}${unit}m b $blk $(( $unit * 16 + $off + 12 ))
mknod ${name}${unit}n b $blk $(( $unit * 16 + $off + 13 ))
mknod ${name}${unit}o b $blk $(( $unit * 16 + $off + 14 ))
mknod ${name}${unit}p b $blk $(( $unit * 16 + $off + 15 ))
mknod r${name}${unit}a c $chr $(( $unit * 16 + $off + 0 ))
mknod r${name}${unit}b c $chr $(( $unit * 16 + $off + 1 ))
mknod r${name}${unit}c c $chr $(( $unit * 16 + $off + 2 ))
mknod r${name}${unit}d c $chr $(( $unit * 16 + $off + 3 ))
mknod r${name}${unit}e c $chr $(( $unit * 16 + $off + 4 ))
mknod r${name}${unit}f c $chr $(( $unit * 16 + $off + 5 ))
mknod r${name}${unit}g c $chr $(( $unit * 16 + $off + 6 ))
mknod r${name}${unit}h c $chr $(( $unit * 16 + $off + 7 ))
mknod r${name}${unit}i c $chr $(( $unit * 16 + $off + 8 ))
mknod r${name}${unit}j c $chr $(( $unit * 16 + $off + 9 ))
mknod r${name}${unit}k c $chr $(( $unit * 16 + $off + 10 ))
mknod r${name}${unit}l c $chr $(( $unit * 16 + $off + 11 ))
mknod r${name}${unit}m c $chr $(( $unit * 16 + $off + 12 ))
mknod r${name}${unit}n c $chr $(( $unit * 16 + $off + 13 ))
mknod r${name}${unit}o c $chr $(( $unit * 16 + $off + 14 ))
mknod r${name}${unit}p c $chr $(( $unit * 16 + $off + 15 ))
chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p]
chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p]
done
blk=14; chr=19;
rm -f $name$unit? r$name$unit?
mknod ${name}${unit}a b $blk $(( $unit * 16 + 0 ))
mknod ${name}${unit}b b $blk $(( $unit * 16 + 1 ))
mknod ${name}${unit}c b $blk $(( $unit * 16 + 2 ))
mknod ${name}${unit}d b $blk $(( $unit * 16 + 3 ))
mknod ${name}${unit}e b $blk $(( $unit * 16 + 4 ))
mknod ${name}${unit}f b $blk $(( $unit * 16 + 5 ))
mknod ${name}${unit}g b $blk $(( $unit * 16 + 6 ))
mknod ${name}${unit}h b $blk $(( $unit * 16 + 7 ))
mknod ${name}${unit}i b $blk $(( $unit * 16 + 8 ))
mknod ${name}${unit}j b $blk $(( $unit * 16 + 9 ))
mknod ${name}${unit}k b $blk $(( $unit * 16 + 10 ))
mknod ${name}${unit}l b $blk $(( $unit * 16 + 11 ))
mknod ${name}${unit}m b $blk $(( $unit * 16 + 12 ))
mknod ${name}${unit}n b $blk $(( $unit * 16 + 13 ))
mknod ${name}${unit}o b $blk $(( $unit * 16 + 14 ))
mknod ${name}${unit}p b $blk $(( $unit * 16 + 15 ))
mknod r${name}${unit}a c $chr $(( $unit * 16 + 0 ))
mknod r${name}${unit}b c $chr $(( $unit * 16 + 1 ))
mknod r${name}${unit}c c $chr $(( $unit * 16 + 2 ))
mknod r${name}${unit}d c $chr $(( $unit * 16 + 3 ))
mknod r${name}${unit}e c $chr $(( $unit * 16 + 4 ))
mknod r${name}${unit}f c $chr $(( $unit * 16 + 5 ))
mknod r${name}${unit}g c $chr $(( $unit * 16 + 6 ))
mknod r${name}${unit}h c $chr $(( $unit * 16 + 7 ))
mknod r${name}${unit}i c $chr $(( $unit * 16 + 8 ))
mknod r${name}${unit}j c $chr $(( $unit * 16 + 9 ))
mknod r${name}${unit}k c $chr $(( $unit * 16 + 10 ))
mknod r${name}${unit}l c $chr $(( $unit * 16 + 11 ))
mknod r${name}${unit}m c $chr $(( $unit * 16 + 12 ))
mknod r${name}${unit}n c $chr $(( $unit * 16 + 13 ))
mknod r${name}${unit}o c $chr $(( $unit * 16 + 14 ))
mknod r${name}${unit}p c $chr $(( $unit * 16 + 15 ))
chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p]
chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p]
umask 77
;;


+ 37
- 43
src/etc/etc.mvmeppc/MAKEDEV.md View File

@ -1,6 +1,6 @@
define(MACHINE,macppc)dnl
vers(__file__,
{-$OpenBSD: MAKEDEV.md,v 1.34 2010/09/30 15:27:54 claudio Exp $-},
{-$OpenBSD: MAKEDEV.md,v 1.35 2011/04/18 16:52:11 thib Exp $-},
etc.MACHINE)dnl
dnl
dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org>
@ -118,48 +118,42 @@ sd*|wd*|ccd*|ofdisk*|raid*)
vnd*)
umask 2 ; unit=${i##*[a-z]}
for name in vnd svnd; do
blk=14; chr=19;
case $name in
vnd) off=0;;
svnd) off=128;;
esac
rm -f $name$unit? r$name$unit?
mknod ${name}${unit}a b $blk $(( $unit * 16 + $off + 0 ))
mknod ${name}${unit}b b $blk $(( $unit * 16 + $off + 1 ))
mknod ${name}${unit}c b $blk $(( $unit * 16 + $off + 2 ))
mknod ${name}${unit}d b $blk $(( $unit * 16 + $off + 3 ))
mknod ${name}${unit}e b $blk $(( $unit * 16 + $off + 4 ))
mknod ${name}${unit}f b $blk $(( $unit * 16 + $off + 5 ))
mknod ${name}${unit}g b $blk $(( $unit * 16 + $off + 6 ))
mknod ${name}${unit}h b $blk $(( $unit * 16 + $off + 7 ))
mknod ${name}${unit}i b $blk $(( $unit * 16 + $off + 8 ))
mknod ${name}${unit}j b $blk $(( $unit * 16 + $off + 9 ))
mknod ${name}${unit}k b $blk $(( $unit * 16 + $off + 10 ))
mknod ${name}${unit}l b $blk $(( $unit * 16 + $off + 11 ))
mknod ${name}${unit}m b $blk $(( $unit * 16 + $off + 12 ))
mknod ${name}${unit}n b $blk $(( $unit * 16 + $off + 13 ))
mknod ${name}${unit}o b $blk $(( $unit * 16 + $off + 14 ))
mknod ${name}${unit}p b $blk $(( $unit * 16 + $off + 15 ))
mknod r${name}${unit}a c $chr $(( $unit * 16 + $off + 0 ))
mknod r${name}${unit}b c $chr $(( $unit * 16 + $off + 1 ))
mknod r${name}${unit}c c $chr $(( $unit * 16 + $off + 2 ))
mknod r${name}${unit}d c $chr $(( $unit * 16 + $off + 3 ))
mknod r${name}${unit}e c $chr $(( $unit * 16 + $off + 4 ))
mknod r${name}${unit}f c $chr $(( $unit * 16 + $off + 5 ))
mknod r${name}${unit}g c $chr $(( $unit * 16 + $off + 6 ))
mknod r${name}${unit}h c $chr $(( $unit * 16 + $off + 7 ))
mknod r${name}${unit}i c $chr $(( $unit * 16 + $off + 8 ))
mknod r${name}${unit}j c $chr $(( $unit * 16 + $off + 9 ))
mknod r${name}${unit}k c $chr $(( $unit * 16 + $off + 10 ))
mknod r${name}${unit}l c $chr $(( $unit * 16 + $off + 11 ))
mknod r${name}${unit}m c $chr $(( $unit * 16 + $off + 12 ))
mknod r${name}${unit}n c $chr $(( $unit * 16 + $off + 13 ))
mknod r${name}${unit}o c $chr $(( $unit * 16 + $off + 14 ))
mknod r${name}${unit}p c $chr $(( $unit * 16 + $off + 15 ))
chown root:operator ${name}${unit}[a-p] r${name}${unit}[a-p]
chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p]
done
blk=14; chr=19;
rm -f $name$unit? r$name$unit?
mknod ${name}${unit}a b $blk $(( $unit * 16 + 0 ))
mknod ${name}${unit}b b $blk $(( $unit * 16 + 1 ))
mknod ${name}${unit}c b $blk $(( $unit * 16 + 2 ))
mknod ${name}${unit}d b $blk $(( $unit * 16 + 3 ))
mknod ${name}${unit}e b $blk $(( $unit * 16 + 4 ))
mknod ${name}${unit}f b $blk $(( $unit * 16 + 5 ))
mknod ${name}${unit}g b $blk $(( $unit * 16 + 6 ))
mknod ${name}${unit}h b $blk $(( $unit * 16 + 7 ))
mknod ${name}${unit}i b $blk $(( $unit * 16 + 8 ))
mknod ${name}${unit}j b $blk $(( $unit * 16 + 9 ))
mknod ${name}${unit}k b $blk $(( $unit * 16 + 10 ))
mknod ${name}${unit}l b $blk $(( $unit * 16 + 11 ))
mknod ${name}${unit}m b $blk $(( $unit * 16 + 12 ))
mknod ${name}${unit}n b $blk $(( $unit * 16 + 13 ))
mknod ${name}${unit}o b $blk $(( $unit * 16 + 14 ))
mknod ${name}${unit}p b $blk $(( $unit * 16 + 15 ))
mknod r${name}${unit}a c $chr $(( $unit * 16 + 0 ))
mknod r${name}${unit}b c $chr $(( $unit * 16 + 1 ))
mknod r${name}${unit}c c $chr $(( $unit * 16 + 2 ))
mknod r${name}${unit}d c $chr $(( $unit * 16 + 3 ))
mknod r${name}${unit}e c $chr $(( $unit * 16 + 4 ))
mknod r${name}${unit}f c $chr $(( $unit * 16 + 5 ))
mknod r${name}${unit}g c $chr $(( $unit * 16 + 6 ))
mknod r${name}${unit}h c $chr $(( $unit * 16 + 7 ))
mknod r${name}${unit}i c $chr $(( $unit * 16 + 8 ))
mknod r${name}${unit}j c $chr $(( $unit * 16 + 9 ))
mknod r${name}${unit}k c $chr $(( $unit * 16 + 10 ))
mknod r${name}${unit}l c $chr $(( $unit * 16 + 11 ))
mknod r${name}${unit}m c $chr $(( $unit * 16 + 12 ))
mknod r${name}${unit}n c $chr $(( $unit * 16 + 13 ))
mknod r${name}${unit}o c $chr $(( $unit * 16 + 14 ))
mknod r${name}${unit}p c $chr $(( $unit * 16 + 15 ))
chown root:operator ${name}${unit}[a-p] r${name}${unit}[a-p]
chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p]
umask 77
;;


+ 0
- 1
src/etc/etc.palm/MAKEDEV View File

@ -471,7 +471,6 @@ st*)
vnd*)
dodisk vnd $U 19 19 $U 0
dodisk svnd $U 19 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.sgi/MAKEDEV View File

@ -435,7 +435,6 @@ ch*)
vnd*)
dodisk vnd $U 2 11 $U 0
dodisk svnd $U 2 11 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.socppc/MAKEDEV View File

@ -411,7 +411,6 @@ ch*)
vnd*)
dodisk vnd $U 14 19 $U 0
dodisk svnd $U 14 19 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.sparc/MAKEDEV View File

@ -475,7 +475,6 @@ ch*)
vnd*)
dodisk vnd $U 8 110 $U 0
dodisk svnd $U 8 110 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.sparc64/MAKEDEV View File

@ -571,7 +571,6 @@ ch*)
vnd*)
dodisk vnd $U 8 110 $U 0
dodisk svnd $U 8 110 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.vax/MAKEDEV View File

@ -473,7 +473,6 @@ ch*)
vnd*)
dodisk vnd $U 18 55 $U 0
dodisk svnd $U 18 55 $U 2048
;;
rd*)


+ 0
- 1
src/etc/etc.zaurus/MAKEDEV View File

@ -471,7 +471,6 @@ st*)
vnd*)
dodisk vnd $U 19 19 $U 0
dodisk svnd $U 19 19 $U 2048
;;
rd*)


Loading…
Cancel
Save