X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fmount_image.c;h=9a0c8a72e016658834ef2a18979bcd18aa04b01c;hb=5eaadbe09039fd336b265423682a6ce322c45c6e;hp=99db4ab38199f7bbca519f45858ff20732955f1c;hpb=f7e62e27ceae4cf2ad2cc74b1a97ebf3015b95eb;p=wimlib diff --git a/src/mount_image.c b/src/mount_image.c index 99db4ab3..9a0c8a72 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -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;