X-Git-Url: https://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Ffs_of.c;fp=second%2Ffs_of.c;h=7a22117b2e6f41176f7feaf583e95e3d87c091f2;hp=0d5e4115b59d129d8911f6172bf9c1d1e24c31de;hb=4d075ad792d6f99502a863a71d820658915dfcc1;hpb=1476a0ba1159e01aaffaf9c8a8d0fe2a6418d493 diff --git a/second/fs_of.c b/second/fs_of.c index 0d5e411..7a22117 100644 --- a/second/fs_of.c +++ b/second/fs_of.c @@ -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) {