Comments (4)
the kernel issues forgets automatically, but only does so under memory pressure (or situations like deleting a file), so you can't use it to manage constrained resources. There is also no guarantee that all inodes will be forgotten on unmount. So, I'd try to find another way to do what you want
from go-fuse.
To elaborate, I have a situation where each inode has some state on a remote server that I want to release when the kernel is done with it. I suppose I can also do this via go finalizers, though that will be even less timely.
from go-fuse.
Small note: I did a bit more digging and it seems like the kernel also issues a forget when a dentry is invalidated - which includes after a dentry is checked for basically any operation, so I feel like it can happen frequently.
https://github.com/torvalds/linux/blob/c8a684e2e110376c58f0bfa30fb3855d1e319670/fs/fuse/dir.c#L252
Would you be open to a PR that adds a callback on the node when it is forgotten?
from go-fuse.
I think I will try to do what I want with the raw interface instead.
from go-fuse.
Related Issues (20)
- example/hello cannot run when fusermount is not installed HOT 1
- user process can't access filesystem when not in primary group HOT 4
- fs: loopback does not respect calling UID/GID
- rawBridge passes a nil FileHandle to FsyncDir HOT 1
- Getattr sets Mode to 0120000 but file does not appear to be a symlink HOT 1
- newunionfs: FAIL: TestPosix/ReadDir HOT 4
- fuse/test: TestLargeDirRead: readdir mismatch got 99 wanted 100 HOT 4
- TestFopenKeepCache is still flaky HOT 5
- fs: TestFsstress is flaky HOT 4
- fs: TestReaddirplusParallel is flaky HOT 6
- fs: TestFileFdLeak is flaky HOT 2
- fs: TestStaleHardlinks is flaky HOT 8
- TestMemNodeFsWrite: content mismatch: got "", want "hello" HOT 1
- TestMemNodeFsBasic: Size after write incorrect: got 0 want 1
- TestDirectMount: DirectMount effective mount options mismatch HOT 2
- How to create custom xattr with v2/fs HOT 3
- monitor file operations without entering the mount point HOT 1
- Go-FUSE logs are ambiguous with multiple servers HOT 4
- first level gocryptfs.diriv file always same when init in reverse mode HOT 1
- `Lseek` does not handle `ENXIO` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-fuse.