]> wimlib.net Git - wimlib/commit
win32_capture: avoid unnecessary fallback to recursive scan
authorEric Biggers <ebiggers3@gmail.com>
Tue, 2 Jun 2020 04:26:04 +0000 (21:26 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 2 Jun 2020 04:26:04 +0000 (21:26 -0700)
commit876385a3ab5dde09322c094c582edd84609d85c9
tree9f36941c2b3e30246affc7e606cf11a0cc730bed
parent1685d10027f11400c73de4c2d8f9580ba4f8b1f2
win32_capture: avoid unnecessary fallback to recursive scan

When doing the fast MFT scan (via FSCTL_QUERY_FILE_LAYOUT) and we find a
directory that needs to fall back to the standard scan, we actually only
need to fall back for the directory itself -- not also its children.
Optimize things accordingly.

Reported at https://wimlib.net/forums/viewtopic.php?f=1&t=533
src/win32_capture.c