commit | 05739efe8d9df2a83b983a86d07cb0715c6d19ee | [log] [tgz] |
---|---|---|
author | Boris Gjenero <boris.gjenero@gmail.com> | Wed Mar 08 22:38:09 2017 -0500 |
committer | Michael Sevakis <jethead71@rockbox.org> | Tue Mar 21 21:04:36 2017 -0400 |
tree | 8b94d917f8b788ea56dcb28d9d069a1e64a6766d | |
parent | 35d69c80a609d5533ad2ee0386bcdbc1a1f12443 [diff] |
Avoid having to wait for dircache builds if shut down too soon When dircache scanning is happening in the background, the user can shut down the device before it is complete. Then, reset_cache() sets size to 0 before it is copied to last_size at the end of build_volumes(). When saved last_size is zero, scanning happens in the foreground during next startup. Avoid shrinking the size if the build is suspended. Change-Id: Ife133e0be0dc0dfd53a4de119f70dba014c7ee68