1 --- parted-1.7.0/include/parted/device.h.P3 2006-05-15 05:19:17.000000000 -0400
2 +++ parted-1.7.0/include/parted/device.h 2006-05-19 10:24:48.000000000 -0400
5 PED_DEVICE_ATARAID = 6,
12 typedef struct _PedDevice PedDevice;
13 --- parted-1.7.0/libparted/arch/linux.c.P3 2006-05-15 05:19:52.000000000 -0400
14 +++ parted-1.7.0/libparted/arch/linux.c 2006-05-19 10:23:14.000000000 -0400
19 +#define SX8_MAJOR1 160
20 +#define SX8_MAJOR2 161
22 #define SCSI_BLK_MAJOR(M) ( \
23 (M) == SCSI_DISK0_MAJOR \
28 +_is_sx8_major (int major)
30 + return (SX8_MAJOR1 <= major && major <= SX8_MAJOR2);
34 _device_stat (PedDevice* dev, struct stat * dev_stat)
36 PED_ASSERT (dev != NULL, return 0);
38 dev->type = PED_DEVICE_DAC960;
39 } else if (dev_major == ATARAID_MAJOR && (dev_minor % 0x10 == 0)) {
40 dev->type = PED_DEVICE_ATARAID;
41 + } else if (_is_sx8_major(dev_major) && (dev_minor % 0x20 == 0)) {
42 + dev->type = PED_DEVICE_SX8;
43 } else if (_is_i2o_major (dev_major) && (dev_minor % 0x10 == 0)) {
44 dev->type = PED_DEVICE_I2O;
45 } else if (_is_cpqarray_major (dev_major) && (dev_minor % 0x10 == 0)) {
47 goto error_free_arch_specific;
50 + case PED_DEVICE_SX8:
51 + if (!init_generic (dev, _("Promise SX8 SATA Device")))
52 + goto error_free_arch_specific;
55 case PED_DEVICE_CPQARRAY:
56 if (!init_generic (dev, _("Compaq Smart Array")))
57 goto error_free_arch_specific;