summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2002-11-29 05:52:09 -0600
committerChristoph Hellwig <hch@hera.kernel.org>2002-11-29 05:52:09 -0600
commit389e30c4f78626c9646de746f75614f6e1e39cf9 (patch)
tree07ee726c84d606412d8a37c9f20d807845592be6 /include/linux
parent4e8e1c73d793abba749f6527542b8985699070cb (diff)
[PATCH] fix sd device number handling
This is the final patch to make sd work properly in a hotplug enviroment. Add a bitmap for currently used disks so that we can properly reuse dev_t when a disk is hot-unplugged. While at that add support for the eight additional majors allocated to sd in the latest devices.txt [1]. If only register_blkdev finally died we could nuke almost all knowledge of majors/minors from sd... [1] http://www.lanana.org/docs/device-list/devices.txt
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/major.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/major.h b/include/linux/major.h
index 3679c040597d..1e889952a12c 100644
--- a/include/linux/major.h
+++ b/include/linux/major.h
@@ -94,6 +94,14 @@
#define SCSI_DISK6_MAJOR 70
#define SCSI_DISK7_MAJOR 71
+#define SCSI_DISK8_MAJOR 128
+#define SCSI_DISK9_MAJOR 129
+#define SCSI_DISK10_MAJOR 130
+#define SCSI_DISK11_MAJOR 131
+#define SCSI_DISK12_MAJOR 132
+#define SCSI_DISK13_MAJOR 133
+#define SCSI_DISK14_MAJOR 134
+#define SCSI_DISK15_MAJOR 135
#define COMPAQ_SMART2_MAJOR 72
#define COMPAQ_SMART2_MAJOR1 73