Skip to contentSkip to conversation

linux-2.6.18/blkfront: properly name all devices

PATCH New Jan Beulich 1 participant 1 message Mar 6, 2012 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-2.6.18/blkfront: properly name all devices

- devices beyond xvdzz didn't get proper names assigned at all
- devices using SCSI_CDROM_MAJOR got named sdXX rather than srNN
- devices with unknown majors got mistakenly converted to use major 202
- extended devices with minors not representable within the kernel's major/minor bit split spilled into foreign majors

drivers/xen/blkfront/block.h +1 -9
@@ -64,20 +64,12 @@
 #define DPRINTK_IOCTL(_f, _a...) ((void)0)
 #endif
 
-struct xlbd_type_info
-{
-	int partn_shift;
-	int disks_per_major;
-	char *devname;
-	char *diskname;
-};
-
 struct xlbd_major_info
 {
 	int major;
 	int index;
 	int usage;
-	struct xlbd_type_info *type;
+	const struct xlbd_type_info *type;
 	struct xlbd_minor_state *minors;
 };
 
drivers/xen/blkfront/vbd.c +76 -52

202 lines not on this page · raw message

blkfront: properly name all devices

- devices beyond xvdzz didn't get proper names assigned at all
- devices using SCSI_CDROM_MAJOR got named sdXX rather than srNN
- devices with unknown majors got mistakenly converted to use major 202
- extended devices with minors not representable within the kernel's major/minor bit split spilled into foreign majors

drivers/xen/blkfront/block.h +1 -9
@@ -64,20 +64,12 @@
 #define DPRINTK_IOCTL(_f, _a...) ((void)0)
 #endif
 
-struct xlbd_type_info
-{
-	int partn_shift;
-	int disks_per_major;
-	char *devname;
-	char *diskname;
-};
-
 struct xlbd_major_info
 {
 	int major;
 	int index;
 	int usage;
-	struct xlbd_type_info *type;
+	const struct xlbd_type_info *type;
 	struct xlbd_minor_state *minors;
 };
 
drivers/xen/blkfront/vbd.c +76 -52

202 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel