]> git.pld-linux.org Git - packages/parted.git/blob - parted-iseries.patch
- obsolete
[packages/parted.git] / parted-iseries.patch
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
3 @@ -223,6 +223,7 @@
4  #define I2O_MAJOR8             87
5  
6  #define DASD_MAJOR             94
7 +#define VIODASD_MAJOR          112
8  
9  #define SCSI_BLK_MAJOR(M) (                                            \
10                 (M) == SCSI_DISK0_MAJOR                                 \
11 @@ -313,6 +314,8 @@
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)) {
20 @@ -864,6 +867,11 @@
21                         goto error_free_arch_specific;
22                 break;
23  
24 +       case PED_DEVICE_VIODASD:
25 +               if (!init_generic (dev, _("IBM iSeries Virtual DASD")))
26 +                       goto error_free_arch_specific;
27 +               break;
28 +
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
34 @@ -35,7 +35,8 @@
35         PED_DEVICE_FILE         = 5,
36         PED_DEVICE_ATARAID      = 6,
37         PED_DEVICE_I2O          = 7,
38 -       PED_DEVICE_DASD         = 8
39 +       PED_DEVICE_DASD         = 8,
40 +       PED_DEVICE_VIODASD      = 9
41  } PedDeviceType;
42  
43  typedef struct _PedDevice PedDevice;
This page took 0.026274 seconds and 3 git commands to generate.