Skip to contentSkip to conversation

ub vs. ubd

DISCUSSION Pete Zaitcev 2 participants 3 messages Sep 16, 2004 – Sep 17, 2004 3 messages not in the archive Documentation

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 1 line · On Thu, 16 Sep 2004 13:53:22 -0400 Jeff Dike <[email protected]> wrote:

UML doesn't use uba, it uses ubda.

It looks that the numerical syntax remains in ubd_kern.c in places. For one, the help for ubd_setup recommends it.

Also, disk->disk_name is done with:
sprintf(disk->disk_name, "ubd");
Can you send me your /proc/partitions from a guest with a few UBDs configured?

-- Pete

#4 lore raw
Quoted 2 lines · [email protected] said:

Can you send me your /proc/partitions from a guest with a few UBDs configured?

usermode:~# more /proc/partitions 
major minor  #blocks  name

98 0 1049600 ubda
98 16 1049600 ubdb
98 32 204801 ubdc

Jeff

#5 lore raw
Quoted 10 lines · On Fri, 17 Sep 2004 01:23:35 -0400 Jeff Dike <[email protected]> wrote:
Quoted 2 lines · [email protected] said:

Can you send me your /proc/partitions from a guest with a few UBDs configured?

usermode:~# more /proc/partitions 
major minor  #blocks  name

98 0 1049600 ubda
98 16 1049600 ubdb
98 32 204801 ubdc

I see. So, the appended patch should be appropriate.

-- Pete

Documentation/devices.txt +6 -2
@@ -1741,10 +1741,14 @@
 		See http://stm.lbl.gov/comedi or http://www.llp.fu-berlin.de/.
 
  98 block	User-mode virtual block device
-		  0 = /dev/ubd0		First user-mode block device
-		  1 = /dev/ubd1		Second user-mode block device
+		  0 = /dev/ubda		First user-mode block device
+		 16 = /dev/ubdb		Second user-mode block device
 		    ...
 
+		Partitions are handled in the same way as for IDE
+		disks (see major number 3) except that the limit on
+		partitions is 15.
+
 		This device is used by the user-mode virtual kernel port.
 
  99 char	Raw parallel ports