changeset 3602:c482c5274168

6520664 HAL cannot mount fat partition inside extended fdisk partition Contributed by Juergen Keil <jk@tools.de>
author artem
date Tue, 06 Feb 2007 13:55:56 -0800
parents cdb38dba6071
children 1420c3b9fd96
files usr/src/cmd/hal/utils/fsutils.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/hal/utils/fsutils.c	Tue Feb 06 00:00:00 2007 -0700
+++ b/usr/src/cmd/hal/utils/fsutils.c	Tue Feb 06 13:55:56 2007 -0800
@@ -85,8 +85,10 @@
 boolean_t
 is_dos_drive(uchar_t type)
 {
-	return ((type == 1) || (type == 4) || (type == 5) || (type == 6) ||
-	    ((type >= 8) && (type <= 0xf)));
+	return ((type == DOSOS12) || (type == DOSOS16) ||
+	    (type == DOSHUGE) || (type == FDISK_WINDOWS) ||
+	    (type == FDISK_EXT_WIN) || (type == FDISK_FAT95) ||
+	    (type == DIAGPART));
 }
 
 boolean_t