Skip to content

Fix build on NetBSD by removing __NetBSD__ workaround#66

Open
depressed-pho wants to merge 1 commit intormind:masterfrom
depressed-pho:remove-netbsd-workaround
Open

Fix build on NetBSD by removing __NetBSD__ workaround#66
depressed-pho wants to merge 1 commit intormind:masterfrom
depressed-pho:remove-netbsd-workaround

Conversation

@depressed-pho
Copy link
Copy Markdown

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