diff options
| author | Stefan Boberg <[email protected]> | 2023-12-12 12:38:54 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-12 12:38:54 +0100 |
| commit | 1ea80957f0beac872d69009137b5308a1c8d0881 (patch) | |
| tree | 5ce116efab10268eed3b2820ce57e132d38efd38 /src/zenserver/config.h | |
| parent | premature logging shutdown fix (#603) (diff) | |
| download | zen-1ea80957f0beac872d69009137b5308a1c8d0881.tar.xz zen-1ea80957f0beac872d69009137b5308a1c8d0881.zip | |
Adding an info command to display a top-level summary of disk space etc (#602)
this also adds a central, shared folder for storing information which may be found by any instance on the host. The directory is currently located alongside the default install and state directory.
Initially this is used to store a collection of known `root_manifest` locations and a copy of the latest manifest version which allow us to find all known locations where zen state is present.
Diffstat (limited to 'src/zenserver/config.h')
| -rw-r--r-- | src/zenserver/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zenserver/config.h b/src/zenserver/config.h index cd2d92523..b5314b600 100644 --- a/src/zenserver/config.h +++ b/src/zenserver/config.h @@ -128,6 +128,7 @@ struct ZenServerOptions zen::HttpServerConfig HttpServerConfig; ZenStructuredCacheConfig StructuredCacheConfig; ZenStatsConfig StatsConfig; + std::filesystem::path SystemRootDir; // System root directory (used for machine level config) std::filesystem::path DataDir; // Root directory for state (used for testing) std::filesystem::path ContentDir; // Root directory for serving frontend content (experimental) std::filesystem::path AbsLogFile; // Absolute path to main log file @@ -162,4 +163,7 @@ struct ZenServerOptions void ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions); +void EmitCentralManifest(const std::filesystem::path& SystemRoot, Oid Identifier, CbObject Manifest, std::filesystem::path ManifestPath); +std::vector<CbObject> ReadAllCentralManifests(const std::filesystem::path& SystemRoot); + } // namespace zen |