X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=second%2Ffs_of.c;h=e7b37bdd05742c915125cf787c611d2b49a1fb01;hb=fb19c524bfae0a8105d9321eec4c60daa2f60a03;hp=0d5e4115b59d129d8911f6172bf9c1d1e24c31de;hpb=082669fa9dbe50221b75f444f819533333705c10;p=yaboot.git diff --git a/second/fs_of.c b/second/fs_of.c index 0d5e411..e7b37bd 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" @@ -92,6 +93,11 @@ of_open(struct boot_file_t* file, const char* dev_name, strncpy(buffer, dev_name, 768); strcat(buffer, ":"); if (part) { + 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; + } char pn[3]; sprintf(pn, "%02d", part->part_number); strcat(buffer, pn);