Add native Linux support for getael while preserving the strictly read-only invariant and single-binary architecture.
Scope #
- Platform directory paths: Use XDG Base Directory paths (
$XDG_CACHE_HOME/getael,$XDG_CONFIG_HOME/getael,$XDG_STATE_HOME/getael/logs) instead of macOS~/Library/.... - Scanner metadata: Reuse
std::os::unix::fs::MetadataExt(blocks() * 512,dev(),ino(),nlink()) and verifylibc::statvfsfield types across glibc and musl targets. - Filesystem watcher (
inotifyscaling): Gatenotify'smacos_fseventfeature tocfg(target_os = "macos"). Because Linuxinotifyis not natively recursive and uses one watch descriptor per directory, large home directories can hitfs.inotify.max_user_watches(ENOSPC).- Handle
ENOSPCgracefully instead of failing startup: log a clear warning with instructions to raisefs.inotify.max_user_watches, and fall back to periodic rescanning (PollWatcheror manual/timed refresh). - Map
IN_Q_OVERFLOW/Flag::Rescanto the existing overflow/rescan path.
- Handle
- Volume & snapshot telemetry: Replace APFS (
diskutil,tmutil) withstatvfs+/proc/mounts(mountpoint, filesystem type, total/free/available capacity). Mark snapshot telemetry as unavailable/optional so the API and UI degrade cleanly without APFS/Time Machine copy. - Single-file build: Verify static
x86_64-unknown-linux-muslandaarch64-unknown-linux-muslbinaries build and run cleanly.
Acceptance Criteria #
cargo check/cargo testpass on Linux (both glibc and musl).- Server starts unprivileged, scans
$HOME, handlesinotifyENOSPCgracefully, serves the embedded web UI on127.0.0.1:6174, and stays strictly read-only toward user files.