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

Fix build on NetBSD by removing __NetBSD__ workaround #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

depressed-pho
Copy link

Remove __NetBSD__ workaround for old versions of NetBSD librefuse. Here's an explanation why it's problematic:

This filesystem declares that it wants FUSE 2.6 API:

#define	FUSE_USE_VERSION	26

In the past NetBSD had a broken implementation of FUSE API. It used to expose FUSE 3.0 API even when 2.6 was requested. Since these two versions have incompatible fuse_new(3), rvaultfs.c uses FUSE 3.0 API as a workaround. However, NetBSD no longer has this issue and now it correctly exposes FUSE 2.6 API when requested so. Trying to use 3.0 API results in a compilation error.

Remove __NetBSD__ workaround for old versions of NetBSD librefuse. Here's
an explanation why it's problematic:

This filesystem declares that it wants FUSE 2.6 API:
> #define	FUSE_USE_VERSION	26

In the past NetBSD had a broken implementation of FUSE API. It used to
expose FUSE 3.0 API even when 2.6 was requested. Since these two versions
have incompatible fuse_new(3), rvaultfs.c uses FUSE 3.0 API as a
workaround. However, NetBSD no longer has this issue and now it correctly
exposes FUSE 2.6 API when requested so. Trying to use 3.0 API results in a
compilation error.
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.

1 participant