From 1255866e16bbbf2ac93ade99ae5ef2f68f64d8c6 Mon Sep 17 00:00:00 2001 From: Ben Radford <104896700+benradf@users.noreply.github.com> Date: Fri, 28 Jul 2023 12:23:42 +0100 Subject: [PATCH] Update src/libstore/local-overlay-store.hh Co-authored-by: John Ericson --- src/libstore/local-overlay-store.hh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libstore/local-overlay-store.hh b/src/libstore/local-overlay-store.hh index 21af396a6..b91f68eea 100644 --- a/src/libstore/local-overlay-store.hh +++ b/src/libstore/local-overlay-store.hh @@ -124,6 +124,13 @@ private: void optimiseStore() override; + /** + * Check all paths registered in the upper DB. + * + * Note that this includes store objects that reside in either overlayfs layer; just enumerating the contents of the upper layer would skip them. + * + * We don't verify the contents of both layers on the assumption that the lower layer is far bigger, and also the observation that anything not in the upper db the overlayfs doesn't yet care about. + */ bool verifyAllValidPaths(RepairFlag repair, StorePathSet & validPaths) override; /**