Bug 15236

Summary: MAKEDEV doesn't generate block devices
Product: Base System Reporter: Achim Patzner <ap>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description Achim Patzner 1999-12-03 09:30:01 UTC
	 
I wanted to create the compatibility devices on a new machine in order to
try out vinum.

MAKEDEV da0 gave me the following entries:

ls -al /dev/da0?
crw-r-----  1 root  operator   13,   0  1 Jan  1997 /dev/da0a
crw-r-----  1 root  operator   13,   1  1 Jan  1997 /dev/da0b
crw-r-----  1 root  operator   13,   2  1 Jan  1997 /dev/da0c
crw-r-----  1 root  operator   13,   3  1 Jan  1997 /dev/da0d
crw-r-----  1 root  operator   13,   4  1 Jan  1997 /dev/da0e
crw-r-----  1 root  operator   13,   5  1 Jan  1997 /dev/da0f
crw-r-----  1 root  operator   13,   6  1 Jan  1997 /dev/da0g
crw-r-----  1 root  operator   13,   7  1 Jan  1997 /dev/da0h

Vinum didn't really like that

It seems that the latest MAKEDEV is foing this for nearly all devices I
expected to be block devices...

Fix: If turning block devices into character devices wasn't intended



Cut&paste typo or intention?


Achim--dd0nre9lRQw7tE8wSjt1ht3dwVVuoOpW6NB4fdV6lcMIMrpI
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** /tmp/MAKEDEV	Fri Dec  3 10:17:03 1999
--- /tmp/MAKEDEV.old	Fri Dec  3 10:16:30 1999
***************
*** 352,358 ****
  			slice=$(($slice+1))
  			slicename=`dkitos $slice`
  			minor=`dkminor 0 $unit $slice $dkrawpart`
! 			mknod  $name$unit$slicename b $chr $minor
  			mknod r$name$unit$slicename c $chr $minor
  			case $part in
  			[a-h])
--- 352,358 ----
  			slice=$(($slice+1))
  			slicename=`dkitos $slice`
  			minor=`dkminor 0 $unit $slice $dkrawpart`
! 			mknod  $name$unit$slicename c $chr $minor
  			mknod r$name$unit$slicename c $chr $minor
  			case $part in
  			[a-h])
***************
*** 364,370 ****
  					minor=`dkminor 0 $unit $slice $part`
  					partname=`dkitop $part`
  					mknod  $name$unit$slicename$partname \
! 					      b $chr $minor
  					mknod r$name$unit$slicename$partname \
  					      c $chr $minor
  				done
--- 364,370 ----
  					minor=`dkminor 0 $unit $slice $part`
  					partname=`dkitop $part`
  					mknod  $name$unit$slicename$partname \
! 					      c $chr $minor
  					mknod r$name$unit$slicename$partname \
  					      c $chr $minor
  				done
How-To-Repeat: 
	

try MAKEDEV da0
Comment 1 Peter Wemm freebsd_committer freebsd_triage 1999-12-06 19:26:08 UTC
State Changed
From-To: open->closed

This is actually an intended change, block devices no longer exist. 
See the HEADS-UP in freebsd-current. 


Comment 2 Peter Wemm freebsd_committer freebsd_triage 1999-12-06 19:26:08 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs