bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH parted 4/5] dasd: Set disk_specific->format_type in dasd_alloc


From: Hans de Goede
Subject: [PATCH parted 4/5] dasd: Set disk_specific->format_type in dasd_alloc
Date: Tue, 3 Nov 2009 13:08:59 +0100

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]