Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the ttl and generation arguments for in the replies? #292

Open
sbstp opened this issue Aug 10, 2024 · 1 comment
Open

What are the ttl and generation arguments for in the replies? #292

sbstp opened this issue Aug 10, 2024 · 1 comment

Comments

@sbstp
Copy link

sbstp commented Aug 10, 2024

I can't seem to find documentation in this repo, on Google, or in the libfuse docs about what these arguments do.

@sbstp
Copy link
Author

sbstp commented Aug 11, 2024

I did more digging in the code and ended up landing on this page https://man7.org/linux/man-pages/man4/fuse.4.html (Fuse ABI).

If someone ends up here in the future, TTL is related to getattr caching (see above)

For performance reasons, these attributes may be cached in
the kernel for a specified duration of time. While the
cache timeout has not been exceeded, the attributes will
be served from the cache and will not cause additional
FUSE_GETATTR requests.

For generation it says

The combination of nodeid and generation must be unique
for the filesystem's lifetime.

My understanding is that this is used to differentiate inodes if the filesystem is remounted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant