stream = inode_unnamed_lte_resolved(inode);
+ /* Note: Microsoft's WoF driver errors out if it tries to satisfy a
+ * read, with ending offset >= 4 GiB, from an externally backed file. */
if (!stream ||
stream->resource_location != RESOURCE_IN_WIM ||
stream->rspec->wim != ctx->common.wim ||
- stream->size != stream->rspec->uncompressed_size)
+ stream->size != stream->rspec->uncompressed_size ||
+ stream->size > 4200000000)
return WIM_BACKING_NOT_POSSIBLE;
/*