From c43944a2bc3991b6a7f7c16bb383233182ff46a5 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 14 Mar 2015 20:47:39 -0500 Subject: [PATCH] win32_apply.c: Don't externally back very large files --- src/win32_apply.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/win32_apply.c b/src/win32_apply.c index 26814f68..4c65fefe 100644 --- a/src/win32_apply.c +++ b/src/win32_apply.c @@ -392,10 +392,13 @@ will_externally_back_inode(struct wim_inode *inode, struct win32_apply_ctx *ctx, 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; /* -- 2.43.0