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

FreeBSD support #2

Open
anacrolix opened this issue Mar 2, 2024 · 4 comments
Open

FreeBSD support #2

anacrolix opened this issue Mar 2, 2024 · 4 comments

Comments

@anacrolix
Copy link
Owner

It looks like FreeBSD support won't be possible (in the way I would like) until either open file description locks, or clonefile are implemented. There are notes in the code about the state of those, it looks like clonefile might arrive in the next version of BSD if the interface in ZFS settles down.

@anacrolix
Copy link
Owner Author

FreeBSD 14 is supported now, but probably won't perform as well as other platforms.

@funny-falcon
Copy link

Please, explain, which way range locking is broken on FreeBSD?
Documentation on fcntl says it can do F_SETLK/F_SETLKW.

https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2&n=1

Or you use some other kind of range blocking?

@anacrolix
Copy link
Owner Author

Thanks for the question, I'll check what the state is again.

@funny-falcon
Copy link

Perhaps you mean “mandatory” locks, not “advisory”?

And I see that “fcntl F_SETLCK” is per-process lock, not per file descriptor.

What do you use on Linux+Ext4? I can't easily navigate through your code, sorry.

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

2 participants