[Parted-commits] GNU Parted Official Repository: Changes to 'master'
Jim Meyering
meyering at alioth.debian.org
Tue Jul 20 16:33:40 UTC 2010
NEWS | 2 ++
libparted/arch/linux.c | 11 ++++++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
New commits:
commit 92cb1fef83e2c84ddfc3a420f4fd384257116992
Author: Hans de Goede <hdegoede at redhat.com>
Date: Tue Jul 20 12:17:53 2010 +0200
linux: recognize scsi disks with a high major number (128-135)
* libparted/arch/linux.c (SCSI_BLK_MAJOR): Recognize high major number.
diff --git a/NEWS b/NEWS
index 45bd2bf..a1863fc 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,8 @@ GNU parted NEWS -*- outline -*-
libparted once again recognizes a whole-disk FAT partition
[bug introduced in parted-1.9.0]
+ libparted now recognizes scsi disks with a high major (128-135) as scsi
+ disks
* Noteworthy changes in release 2.3 (2010-05-28) [stable]
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 38f4e31..b1f7dc9 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -220,6 +220,14 @@ struct blkdev_ioctl_param {
#define SCSI_DISK5_MAJOR 69
#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
#define COMPAQ_SMART2_MAJOR2 74
@@ -260,7 +268,8 @@ struct blkdev_ioctl_param {
#define SCSI_BLK_MAJOR(M) ( \
(M) == SCSI_DISK0_MAJOR \
|| (M) == SCSI_CDROM_MAJOR \
- || ((M) >= SCSI_DISK1_MAJOR && (M) <= SCSI_DISK7_MAJOR))
+ || ((M) >= SCSI_DISK1_MAJOR && (M) <= SCSI_DISK7_MAJOR) \
+ || ((M) >= SCSI_DISK8_MAJOR && (M) <= SCSI_DISK15_MAJOR))
/* Maximum number of partitions supported by linux. */
#define MAX_NUM_PARTS 64
More information about the Parted-commits
mailing list