mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
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 <directory>` 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.
This commit is contained in:
parent
30ac041d9e
commit
a448905104
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue