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

TODO: Use STATX_BTIME in addition to inode number #732

Open
rfjakob opened this issue Apr 27, 2023 · 0 comments
Open

TODO: Use STATX_BTIME in addition to inode number #732

rfjakob opened this issue Apr 27, 2023 · 0 comments

Comments

@rfjakob
Copy link
Owner

rfjakob commented Apr 27, 2023

Linux 4.11 gained statx: https://man7.org/linux/man-pages/man2/statx.2.html

This solves the problem of inode number recycling, which was the reason for -sharedstorage.

In my testing, STATX_BTIME (birth time) works on NFS and also CIFS. It is reported by recent versions of stat.

An alternative may be FS_IOC_GETVERSION ( https://stackoverflow.com/a/28006048/1380267 ), but this is harder to get (needs an IOCTL), and I don't know if it works on NFS or CIFS.

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