CVS: src/si/patches MAKEDEV.ubd.patch,NONE,1.1

Mats Wichmann <[email protected]>
Newsgroups gmane.linux.lsb.implementation
Message-ID <[email protected]>
Update of /cvsroot/lsb/src/si/patches
In directory sc8-pr-cvs1:/tmp/cvs-serv14561

Added Files:
	MAKEDEV.ubd.patch 
Log Message:
MAKEDEV patch to make ubd devices (phase4c/uml)


--- NEW FILE ---
--- MAKEDEV-1.7.orig	2003-01-27 15:04:36.000000000 -0700
+++ MAKEDEV-1.7	2003-01-27 15:06:42.000000000 -0700
@@ -76,6 +76,7 @@
     disk="root disk    0660"
     scsi="root disk    0660"
    cdrom="root disk    0660"
+     ubd="root disk    0660"
     tape="root tape    0660"
    audio="root audio   0660"
    video="root root    0660"
@@ -97,6 +98,7 @@
 major_sd=8
 major_sr=11
 major_sg=21
+major_ubd=98
 
 major_lp=6
 major_loop=7
@@ -276,6 +278,7 @@
 			ide3)	echo hdg hdh ;;
 			sd)	echo sda sdb sdc sdd ;;
 			sg)	echo sg ;;
+			ubd)	echo ubd0 ubd1 ubd2 ubd3 ubd4 ubd5 ;;
 			sr)	echo scd0 ;;
 			st)	echo st0 ;;
 			xd)	echo xda xdb ;;
@@ -1262,8 +1265,14 @@
 		unit=`suffix $arg sg`
 		makedev sg$unit c $major $unit $cdrom
 		;;
+	ubd)
+		major=
+		for unit in 0 1 2 3 4 5 6
+		do
+			makedev ubd$unit b $major_ubd $(($unit * 16)) $ubd
+		done
+		;;
 	pg)
-		major=`Major pg 97`
 		for unit in 0 1 2 3
 		do
 			makedev pg$unit c $major $unit $scsi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.