Treat iSCSI targets as block devices.
[yaboot.git] / second / fs_ext2.c
index c86907ebb89464681194da73c951bc56ad0981eb..a8bdf6bdf6d8de71a3bdf11275317eb9d6f234b5 100644 (file)
@@ -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;
      }