X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=second%2Ffs_ext2.c;h=a85958f0323f54e4d73c00ce158d8bc70208f8d1;hb=ad973226cb9266ce5cf6946833387c0549c4f3f2;hp=c86907ebb89464681194da73c951bc56ad0981eb;hpb=f9631a4c18c659a6144a697e0c629fe63a44970f;p=yaboot.git diff --git a/second/fs_ext2.c b/second/fs_ext2.c index c86907e..a85958f 100644 --- a/second/fs_ext2.c +++ b/second/fs_ext2.c @@ -109,7 +109,7 @@ static unsigned long read_total; static unsigned long read_max; static struct boot_file_t* read_cur_file; static errcode_t read_result; -static char* read_buffer; +static unsigned char* read_buffer; static int read_dump_range(void); static int read_iterator(ext2_filsys fs, blk_t *blocknr, int lg_block, void *private); @@ -141,7 +141,8 @@ ext2_open( struct boot_file_t* file, DEBUG_LEAVE(FILE_ERR_FSBUSY); return FILE_ERR_FSBUSY; } - if (file->device_kind != FILE_DEVICE_BLOCK) { + if (file->device_kind != FILE_DEVICE_BLOCK + && file->device_kind != FILE_DEVICE_ISCSI) { DEBUG_LEAVE(FILE_ERR_BADDEV); return FILE_ERR_BADDEV; }