]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
stat() to find out if a file is cached in offline mode
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 14 Nov 2023 22:39:18 +0000 (16:39 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 15 Nov 2023 00:14:54 +0000 (18:14 -0600)
commit65f09421efe1e3bd5f64f1547aa2c6bf651c164d
treedd3300edcc11cee676d63d9ffaf9a72bc68864ea
parent575b4ecdd7f581807b9dfdda4441980395cf52c1
stat() to find out if a file is cached in offline mode

The offline code used to assume files were always cached when
--http.enabled/--rsync.enabled were false.

Now it returns a more informed answer, depending on whether the file is
actually cached.

With this, offline mode more closely resembles online mode.
src/cache/local_cache.c
src/http/http.c
src/rsync/rsync.c
test/mock.c