Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=e1210f91ffb1ae3d3a9cd8c005c5b08915f5fd97

commit e1210f91ffb1ae3d3a9cd8c005c5b08915f5fd97
Author: James Buren <[email protected]>
Date:   Wed Jul 17 15:18:53 2013 -0500

block: initialize dosextended to DOS_EXTENDED
if DOS_EXTENDED2 or DOS_EXTENDED3 is found in
the partition table when loading from disk, then
set that as the value to use when handling
extended / logical partitions.

diff --git a/src/block.c b/src/block.c
index e62d078..217c0b4 100644
--- a/src/block.c
+++ b/src/block.c
@@ -585,6 +585,9 @@ extern struct disk *disk_open(struct device *device)

getsectors(&disk);

+  if(disk.type == DISKTYPE_DOS)
+    disk.dosextended = DOS_EXTENDED;
+
if(!getuuid(&disk))
goto bail;

@@ -614,6 +617,9 @@ extern struct disk *disk_open(struct device *device)

part->dosactive = (blkid_partition_get_flags(partition) == 0x80);

+        if(part->dostype == DOS_EXTENDED2 || part->dostype == DOS_EXTENDED3)
+          disk.dosextended = part->dostype;
+
continue;
}

@@ -759,6 +765,9 @@ extern void disk_new_table(struct disk *disk,const char 
*type)

getsectors(disk);

+  if(disk->type == DISKTYPE_DOS)
+    disk->dosextended = DOS_EXTENDED;
+
disk->modified = true;
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to