1 --- parted-1.6.3/libparted/linux.c.iseries 2003-05-16 17:50:31.000000000 -0400
2 +++ parted-1.6.3/libparted/linux.c 2003-05-16 19:13:48.000000000 -0400
7 +#define VIODASD_MAJOR 112
9 #define SCSI_BLK_MAJOR(M) ( \
10 (M) == SCSI_DISK0_MAJOR \
12 dev->type = PED_DEVICE_ATARAID;
13 } else if (dev_major == DASD_MAJOR && (dev_minor % 0x4 == 0)) {
14 dev->type = PED_DEVICE_DASD;
15 + } else if (dev_major == VIODASD_MAJOR && (dev_minor % 0x8 == 0)) {
16 + dev->type = PED_DEVICE_VIODASD;
17 } else if (_is_i2o_major (dev_major) && (dev_minor % 0x10 == 0)) {
18 dev->type = PED_DEVICE_I2O;
19 } else if (_is_cpqarray_major (dev_major) && (dev_minor % 0x10 == 0)) {
21 goto error_free_arch_specific;
24 + case PED_DEVICE_VIODASD:
25 + if (!init_generic (dev, _("IBM iSeries Virtual DASD")))
26 + goto error_free_arch_specific;
29 case PED_DEVICE_CPQARRAY:
30 if (!init_generic (dev, _("Compaq Smart Array")))
31 goto error_free_arch_specific;
32 --- parted-1.6.3/include/parted/device.h.iseries 2003-05-16 18:00:20.000000000 -0400
33 +++ parted-1.6.3/include/parted/device.h 2003-05-16 18:00:05.000000000 -0400
36 PED_DEVICE_ATARAID = 6,
39 + PED_DEVICE_DASD = 8,
40 + PED_DEVICE_VIODASD = 9
43 typedef struct _PedDevice PedDevice;