Skip to main content

Module file_ops

Module file_ops 

Source

Structs§

AdminLockGuard
Cross-process advisory lock serialising privileged (sudo) filesystem mutations. nextest runs each test in its own OS process, so an in-process Mutex cannot prevent concurrent test processes from racing on a real, shared system path (e.g. /etc/docker/daemon.json); this lock closes that window for both tests and real concurrent invocations.

Enums§

InstallOutcome
UninstallOutcome

Functions§

admin_lock
Acquires the cross-process advisory lock serializing privileged (sudo) filesystem mutations. Shared beyond this module by other privileged writes (e.g. the self-install binary copy in self_install.rs) that need to serialize against concurrent sudo-driven writes.
install_bytes
install_bytes_admin
sudo_command
Builds a sudo command, passing -n (non-interactive) when stdin isn’t a TTY so a scripted invocation fails fast instead of hanging on a prompt.
uninstall_entry
uninstall_entry_admin