From a4489051045328e5d4f266154d7ee7310d51bc24 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 7 Jan 2026 12:01:26 -0800 Subject: [PATCH] EXPERIMENT #2500: Add nfs4 to heuristic mount predicate See if nfs4 update issues do indeed need to be addressed by heuristic polling. NOTE: I am not positive this is needed, only putting this up for actual nfs users to test. For testers: As a manual test, you can also compare `stat ` output before / after directory changes (file creation / removal). If the stat times do not change, then heuristic polling will be needed. If they do change, then the issue will likely be elsewhere. --- yazi-fs/src/mounts/partition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-fs/src/mounts/partition.rs b/yazi-fs/src/mounts/partition.rs index 05eaf77b..ce733d0a 100644 --- a/yazi-fs/src/mounts/partition.rs +++ b/yazi-fs/src/mounts/partition.rs @@ -18,7 +18,7 @@ impl Partition { // metadata on changes, and should be refreshed frequently / heuristically. pub fn heuristic(&self) -> bool { let b: &[u8] = self.fstype.as_ref().map_or(b"", |s| s.as_encoded_bytes()); - matches!(b, b"exfat" | b"fuse.rclone") + matches!(b, b"exfat" | b"fuse.rclone" | b"nfs4") } #[rustfmt::skip]