[PSDK]
authorPierre Schweitzer <pierre@reactos.org>
Fri, 27 May 2016 12:13:49 +0000 (12:13 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 27 May 2016 12:13:49 +0000 (12:13 +0000)
Now, ReactOS recognizes the FFS partition :-)

CORE-11040

svn path=/trunk/; revision=71428

reactos/sdk/include/psdk/ntdddisk.h
reactos/sdk/include/psdk/winioctl.h

index 6b66518..f1ddb30 100644 (file)
@@ -223,6 +223,9 @@ extern "C" {
 #ifdef __REACTOS__
 #define PARTITION_OLD_LINUX               0x43
 #define PARTITION_LINUX                   0x83
+#define PARTITION_FREEBSD                 0xA5
+#define PARTITION_OPENBSD                 0xA6
+#define PARTITION_NETBSD                  0xA9
 #endif
 
 #define IsFTPartition( PartitionType ) \
@@ -248,8 +251,11 @@ extern "C" {
        ((PartitionType) == PARTITION_FAT32) || \
        ((PartitionType) == PARTITION_FAT32_XINT13) || \
        ((PartitionType) == PARTITION_XINT13) || \
-        ((PartitionType) == PARTITION_LINUX) || \
-        ((PartitionType) == PARTITION_OLD_LINUX))
+       ((PartitionType) == PARTITION_LINUX) || \
+       ((PartitionType) == PARTITION_OLD_LINUX) || \
+       ((PartitionType) == PARTITION_FREEBSD) || \
+       ((PartitionType) == PARTITION_OPENBSD) || \
+       ((PartitionType) == PARTITION_NETBSD))
 #else
 #define IsRecognizedPartition(PartitionType) ( \
        (((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_FAT_12)) || \
index 58c6b23..3297850 100644 (file)
@@ -197,6 +197,9 @@ extern "C" {
 #ifdef __REACTOS__
 #define PARTITION_OLD_LINUX               0x43
 #define PARTITION_LINUX                   0x83
+#define PARTITION_FREEBSD                 0xA5
+#define PARTITION_OPENBSD                 0xA6
+#define PARTITION_NETBSD                  0xA9
 #endif
 #define SERIAL_LSRMST_ESCAPE          0
 #define SERIAL_LSRMST_LSR_DATA        1
@@ -597,7 +600,10 @@ typedef struct {
     ((t&~PARTITION_NTFT)==PARTITION_FAT32_XINT13)||\
     ((t&~PARTITION_NTFT)==PARTITION_XINT13)||\
     ((t&~PARTITION_NTFT)==PARTITION_LINUX)||\
-    ((t&~PARTITION_NTFT)==PARTITION_OLD_LINUX))
+    ((t&~PARTITION_NTFT)==PARTITION_OLD_LINUX)||\
+    ((t&~PARTITION_NTFT)==PARTITION_FREEBSD)||\
+    ((t&~PARTITION_NTFT)==PARTITION_OPENBSD)||\
+    ((t&~PARTITION_NTFT)==PARTITION_NETBSD))
 #else
 #define IsRecognizedPartition(t)\
   (((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT_12))||\