]> wimlib.net Git - wimlib/blobdiff - src/mount_image.c
streamifier_cb(): Fix update of cur_stream_offset
[wimlib] / src / mount_image.c
index 99db4ab38199f7bbca519f45858ff20732955f1c..9a0c8a72e016658834ef2a18979bcd18aa04b01c 100644 (file)
@@ -1943,7 +1943,7 @@ wimfs_read(const char *path, char *buf, size_t size,
        case RESOURCE_IN_WIM:
                if (read_partial_wim_stream_into_buf(fd->f_lte, size,
                                                     offset, buf))
-                       ret = -errno;
+                       ret = errno ? -errno : -EIO;
                else
                        ret = size;
                break;
@@ -2414,11 +2414,6 @@ wimlib_mount_image(WIMStruct *wim, int image, const char *dir,
                        return ret;
        }
 
-       if (wim->hdr.wim_version == WIM_VERSION_STREAM_CONCAT) {
-               WARNING("WIM contains streams not compressed independently; "
-                       "access may be slow.");
-       }
-
        ret = select_wim_image(wim, image);
        if (ret)
                return ret;