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

Switch from using va_gen to va_filerev since its actually the correct attribute for this purpose #55

Closed
wants to merge 3 commits into from

Conversation

RobinGeuze
Copy link
Contributor

Fixes #51

OpenZFS in FreeBSD 13.1 and up no no longer incorrectly updates va_gen when the file or directory is modified. This means that is no longer a reliable source to base a dircache invalidation on. Instead we should use va_filerev for that, which is based on the same value that va_gen (incorrectly) used to be based on prior to 13.1.

@DanielO
Copy link
Collaborator

DanielO commented Oct 12, 2022

I gave this a quick test on a FreeBSD 13 box and it looks good.

I merged it after fixing a trivial whitespace nit in pefs_getgen_and_filerev, squashing the commits together and changing the commit log to be clearer.

Now to update the port :)

@DanielO DanielO closed this Oct 12, 2022
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

Successfully merging this pull request may close these issues.

Locking does not work on PEFS backed by a ZFS volume
2 participants