eb-local.cvmfs¶
- module eb-local.cvmfs src/cvmfs.zig[source][autodoc]¶
CernVM-FS checks for
eb-local doctor --cvmfs. A build does not call any of this, and it sets no client variable.
Types¶
- pub const Repo = struct[source][autodoc]¶
The repository path doctor stats, and the name
cvmfs_config probetakes.
- pub const ProxyMode = enum[source][autodoc]¶
Whether the client uses a proxy, talks directly, or has no setting.
- pub const Proxy = struct[source][autodoc]¶
The HTTP proxy the client would use, and the file or variable it came from.
Functions¶
- pub fn repository(env: *const std.process.Environ.Map) Repo[source][autodoc]¶
EESSI_CVMFS_REPOwhen it is absolute, otherwise the public EESSI repository.
- pub fn mountState(path: []const u8, forced: ?[]const u8) Mount[source][autodoc]¶
forcedis a test seam:ENOTCONN,EIO,ABSENTorOK. Otherwise statpath.
- pub fn readProxy(a: Allocator, env: *const std.process.Environ.Map, config_root: []const u8, repo_name: []const u8) Allocator.Error!Proxy[source][autodoc]¶
The effective
CVMFS_HTTP_PROXY. A non-empty environment value wins. Otherwise the last assignment in the client files wins, fromdefault.confthroughconfig.d/<repo>.local.DIRECTis direct mode.
- pub fn runTool(a: Allocator, exe: ?[]const u8, argv: []const []const u8, envp: proc.Envp) Tool[source][autodoc]¶
Run
argv[0], already an absolute path. A missing program ispresent = false.
- pub fn parallelProbe(a: Allocator, repo: []const u8, tasks: u8, in_job: bool, stale: bool, srun: ?[]const u8, envp: proc.Envp) Parallel[source][autodoc]¶
Read repository metadata from
tasksprocesses.srun, when its path is set, runssrun -n N stat <repo>. Otherwise this process forks. A stale mount and a shell outside an allocation are not probed.