mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-07 18:57:19 +02:00
Apply suggestions from code review
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
This commit is contained in:
parent
245af3ea02
commit
c30b5d8a0b
1 changed files with 3 additions and 2 deletions
|
@ -24,7 +24,7 @@ struct LocalOverlayStoreConfig : virtual LocalStoreConfig
|
||||||
|
|
||||||
const PathSetting upperLayer{(StoreConfig*) this, "", "upper-layer",
|
const PathSetting upperLayer{(StoreConfig*) this, "", "upper-layer",
|
||||||
R"(
|
R"(
|
||||||
Must be used as OverlayFS upper layer for this store's store dir.
|
Directory containing the OverlayFS upper layer for this store's store dir.
|
||||||
)"};
|
)"};
|
||||||
|
|
||||||
Setting<bool> checkMount{(StoreConfig*) this, true, "check-mount",
|
Setting<bool> checkMount{(StoreConfig*) this, true, "check-mount",
|
||||||
|
@ -60,6 +60,7 @@ struct LocalOverlayStoreConfig : virtual LocalStoreConfig
|
||||||
|
|
||||||
std::string doc() override;
|
std::string doc() override;
|
||||||
|
|
||||||
|
protected:
|
||||||
/**
|
/**
|
||||||
* Given a store path, get its location (if it is exists) in the
|
* Given a store path, get its location (if it is exists) in the
|
||||||
* upper layer of the overlayfs.
|
* upper layer of the overlayfs.
|
||||||
|
@ -167,7 +168,7 @@ private:
|
||||||
* Deduplicate by removing store objects from the upper layer that
|
* Deduplicate by removing store objects from the upper layer that
|
||||||
* are now in the lower layer.
|
* are now in the lower layer.
|
||||||
*
|
*
|
||||||
* This implementation will not cause duplications, but addition of
|
* Operations on a layered store will not cause duplications, but addition of
|
||||||
* new store objects to the lower layer can instill induce them
|
* new store objects to the lower layer can instill induce them
|
||||||
* (there is no way to prevent that). This cleans up those
|
* (there is no way to prevent that). This cleans up those
|
||||||
* duplications.
|
* duplications.
|
||||||
|
|
Loading…
Add table
Reference in a new issue