--- include/parted/device.h +++ include/parted/device.h 2007/08/13 11:39:37 @@ -48,7 +48,8 @@ #ifdef ENABLE_DEVICE_MAPPER PED_DEVICE_DM = 12, #endif - PED_DEVICE_XVD = 13 + PED_DEVICE_XVD = 13, + PED_DEVICE_AOE = 14 } PedDeviceType; typedef struct _PedDevice PedDevice; --- libparted/arch/linux.c +++ libparted/arch/linux.c 2006/12/04 11:57:25 @@ -260,6 +260,7 @@ #define I2O_MAJOR7 86 #define I2O_MAJOR8 87 #define UBD_MAJOR 98 +#define AOE_MAJOR 152 #define DASD_MAJOR 94 #define VIODASD_MAJOR 112 #define SX8_MAJOR1 160 @@ -452,6 +453,8 @@ dev->type = PED_DEVICE_DAC960; } else if (dev_major == ATARAID_MAJOR && (dev_minor % 0x10 == 0)) { dev->type = PED_DEVICE_ATARAID; + } else if (dev_major == AOE_MAJOR && (dev_minor % 0x10 == 0)) { + dev->type = PED_DEVICE_AOE; } else if (dev_major == DASD_MAJOR && (dev_minor % 0x4 == 0)) { dev->type = PED_DEVICE_DASD; } else if (dev_major == VIODASD_MAJOR && (dev_minor % 0x8 == 0)) { @@ -1120,6 +1123,11 @@ goto error_free_arch_specific; break; + case PED_DEVICE_AOE: + if (!init_generic (dev, _("AoE Driver"))) + goto error_free_arch_specific; + break; + case PED_DEVICE_DASD: if (!init_dasd (dev, _("IBM S390 DASD drive"))) goto error_free_arch_specific;