]> git.pld-linux.org Git - packages/parted.git/blame - parted-etherd.patch
- updated for 1.6.25
[packages/parted.git] / parted-etherd.patch
CommitLineData
8a6eed40
JB
1--- parted-1.6.25/include/parted/device.h.orig 2005-11-04 10:13:40.473529896 +0100
2+++ parted-1.6.25/include/parted/device.h 2005-11-04 10:14:41.797207280 +0100
cb4ddda7 3@@ -36,7 +36,8 @@
8a6eed40
JB
4 PED_DEVICE_UBD = 8,
5 PED_DEVICE_DASD = 9,
6 PED_DEVICE_VIODASD = 10,
7- PED_DEVICE_SX8 = 11
8+ PED_DEVICE_SX8 = 11,
9+ PED_DEVICE_AOE = 12
cb4ddda7
JB
10 } PedDeviceType;
11
12 typedef struct _PedDevice PedDevice;
13--- parted-1.6.24/libparted/linux.c.orig 2005-08-15 20:25:26.798119168 +0200
14+++ parted-1.6.24/libparted/linux.c 2005-08-15 20:27:40.800747672 +0200
15@@ -224,6 +224,7 @@
16
17 #define DASD_MAJOR 94
18 #define VIODASD_MAJOR 112
19+#define AOE_MAJOR 152
20
21 #define SCSI_BLK_MAJOR(M) ( \
22 (M) == SCSI_DISK0_MAJOR \
23@@ -330,6 +331,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 {
30 dev->type = PED_DEVICE_UNKNOWN;
31 }
32@@ -963,6 +966,11 @@
33 goto error_free_arch_specific;
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_UBD:
42 if (!init_generic (dev, _("UBD Driver")))
43 goto error_free_dev;
This page took 0.072869 seconds and 4 git commands to generate.