Set disk_specific->format_type in dasd_alloc, so that the disk returned by ped_disk_new_fresh is a valid dasd disk. * libparted/labels/dasd.c (dasd_alloc): Set disk_specific->format_type. --- libparted/labels/dasd.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libparted/labels/dasd.c b/libparted/labels/dasd.c index 37b1f1d..841f122 100644 --- a/libparted/labels/dasd.c +++ b/libparted/labels/dasd.c @@ -160,6 +160,9 @@ dasd_alloc (const PedDevice* dev) return NULL; } + /* CDL format, newer */ + disk_specific->format_type = 2; + return disk; } -- 1.6.5.1 _______________________________________________ bug-parted mailing list bug-parted@gnu.org http://lists.gnu.org/mailman/listinfo/bug-parted