]> git.ozlabs.org Git - yaboot.git/blobdiff - second/fs_of.c
handle RAID partitions on x86 partition tables
[yaboot.git] / second / fs_of.c
index 0d5e4115b59d129d8911f6172bf9c1d1e24c31de..7a22117b2e6f41176f7feaf583e95e3d87c091f2 100644 (file)
@@ -39,6 +39,7 @@
 #include "prom.h"
 #include "string.h"
 #include "partition.h"
+#include "fdisk-part.h"
 #include "fs.h"
 #include "errors.h"
 #include "debug.h"
@@ -89,6 +90,13 @@ of_open(struct boot_file_t* file, const char* dev_name,
      DEBUG_ENTER;
      DEBUG_OPEN;
 
+     if (part->sys_ind == LINUX_RAID)
+     {
+         DEBUG_F("skipping because partition is marked LINUX_RAID\n");
+         DEBUG_LEAVE(FILE_ERR_BAD_FSYS);
+         return FILE_ERR_BAD_FSYS;
+     }
+
      strncpy(buffer, dev_name, 768);
      strcat(buffer, ":");
      if (part) {