From aa0455d90b43f8dbee133afe7658c671f0a7a158 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 19 Feb 2014 19:59:17 -0600 Subject: [PATCH] mount_image.c: Don't assume inode is resolved The code should no longer assume that all streams have been resolved before mounting, since now errors are issued when accessing files with missing streams. However this line still appeared to work correctly because FUSE seems to always call getattr(), which results in stream resolution in wim_pathname_to_stream(), before unlinking. --- src/mount_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount_image.c b/src/mount_image.c index 7482ceb0..d7165466 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -388,7 +388,7 @@ remove_dentry(struct wim_dentry *dentry, unsigned i; for (i = 0; i <= inode->i_num_ads; i++) { - lte = inode_stream_lte_resolved(inode, i); + lte = inode_stream_lte(inode, i, lookup_table); if (lte) lte_decrement_refcnt(lte, lookup_table); } -- 2.43.0