aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-11 11:06:46 +01:00
parent df99318392
commit 86e7c72e5f
10383 changed files with 749164 additions and 749170 deletions

View File

@@ -0,0 +1,16 @@
//! Detects NFS on Linux; other platforms retain their existing filesystem behavior.
//! Closing an extra file descriptor could release process-wide POSIX locks on its inode.
use std::io;
use std::path::Path;
/// On linux we sometimes do a special treatment for NFS related path. We don't support windows NFS
#[cfg(target_os = "linux")]
pub fn is_nfs(path: &Path) -> io::Result<bool> {
Ok(rustix::fs::statfs(path)?.f_type == rustix::fs::NFS_SUPER_MAGIC)
}
#[cfg(not(target_os = "linux"))]
pub fn is_nfs(_path: &Path) -> io::Result<bool> {
Ok(false)
}