mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v3] partitions: dos: Fix support of extended partition type 0x05
@ 2014-12-22 17:20 Victorien Vedrine
  2014-12-22 20:05 ` Uwe Kleine-König
  0 siblings, 1 reply; 3+ messages in thread
From: Victorien Vedrine @ 2014-12-22 17:20 UTC (permalink / raw)
  To: barebox; +Cc: victorien

From: victorien <victorien.vedrine@ophrys.net>

Signed-off-by: Victorien Vedrine <victorien.vedrine@ophrys.net>
---
 common/partitions/dos.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/partitions/dos.c b/common/partitions/dos.c
index 37addfd..f02c822 100644
--- a/common/partitions/dos.c
+++ b/common/partitions/dos.c
@@ -205,11 +205,11 @@ static void dos_partition(void *buf, struct block_device *blk,
 			pd->used_entries++;
 			/*
 			 * Partitions of type 0x05 and 0x0f (and some more)
-			 * contain extended partitions. Only check for type 0x0f
-			 * here as this is the easiest to parse and common
-			 * enough.
+			 * contain extended partitions. Only check for type
+			 * 0x05 and 0x0f.
 			 */
-			if (pentry.dos_partition_type == 0x0f) {
+			if (pentry.dos_partition_type == 0x0f ||
+				pentry.dos_partition_type == 0x05) {
 				if (!extended_partition)
 					extended_partition = &pd->parts[n];
 				else
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-23 13:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-22 17:20 [PATCH v3] partitions: dos: Fix support of extended partition type 0x05 Victorien Vedrine
2014-12-22 20:05 ` Uwe Kleine-König
2014-12-23 13:23   ` Victorien Vedrine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox