]> git.pld-linux.org Git - packages/parted.git/blob - parted-etherd.patch
- updated to 1.7.1 (note: new soname)
[packages/parted.git] / parted-etherd.patch
1 --- parted-1.7.1/include/parted/device.h.orig   2006-05-27 22:27:39.758600250 +0200
2 +++ parted-1.7.1/include/parted/device.h        2006-05-27 22:28:10.212503500 +0200
3 @@ -46,7 +46,8 @@
4          PED_DEVICE_DASD         = 9,
5          PED_DEVICE_VIODASD      = 10,
6          PED_DEVICE_SX8          = 11,
7 -        PED_DEVICE_DM           = 12
8 +        PED_DEVICE_DM           = 12,
9 +       PED_DEVICE_AOE          = 13
10  } PedDeviceType;
11  
12  typedef struct _PedDevice PedDevice;
13 --- parted-1.7.1/libparted/arch/linux.c.orig    2006-05-27 22:27:39.770601000 +0200
14 +++ parted-1.7.1/libparted/arch/linux.c 2006-05-27 22:29:40.138123500 +0200
15 @@ -238,6 +238,7 @@
16  #define VIODASD_MAJOR           112
17  #define SX8_MAJOR1              160
18  #define SX8_MAJOR2              161
19 +#define AOE_MAJOR              152
20  
21  #define SCSI_BLK_MAJOR(M) (                                             \
22                  (M) == SCSI_DISK0_MAJOR                                 \
23 @@ -438,6 +439,8 @@
24                  dev->type = PED_DEVICE_CPQARRAY;
25          } else if (dev_major == UBD_MAJOR && (dev_minor % 0x10 == 0)) {
26                  dev->type = PED_DEVICE_UBD;
27 +       } else if (dev_major == AOE_MAJOR && (dev_minor % 0x10 == 0)) {
28 +               dev->type = PED_DEVICE_AOE;
29          } else if (_is_dm_major(dev_major)) {
30                  dev->type = PED_DEVICE_DM;
31          } else {
32 @@ -1118,6 +1121,11 @@
33                          goto error_free_dev;
34                  break;
35  
36 +       case PED_DEVICE_AOE:
37 +               if (!init_generic (dev, _("AoE Driver")))
38 +                       goto error_free_dev;
39 +               break;
40 +
41          case PED_DEVICE_FILE:
42                  if (!init_file (dev))
43                          goto error_free_arch_specific;
This page took 0.022599 seconds and 3 git commands to generate.