Skip to content

btrfs: depend on kernel UAPI instead of libbtrfs#7933

Merged
estesp merged 1 commit intocontainerd:mainfrom
AkihiroSuda:drop-libbtrfs
Feb 10, 2023
Merged

btrfs: depend on kernel UAPI instead of libbtrfs#7933
estesp merged 1 commit intocontainerd:mainfrom
AkihiroSuda:drop-libbtrfs

Conversation

@AkihiroSuda
Copy link
Copy Markdown
Member

@AkihiroSuda AkihiroSuda commented Jan 7, 2023

See containerd/btrfs#40 and moby/moby#44761. (Thanks to @neersighted.)

The containerd/btrfs library now requires headers from kernel 4.12 or newer:

These files are licensed under the GPL-2.0 WITH Linux-syscall-note, so it should be compatible with the Apache License 2.0. https://spdx.org/licenses/Linux-syscall-note.html

The dependency on the kernel headers only affects users building from source. Users on older kernels may opt to not compile this library (BUILDTAGS=no_btfs), or to provide headers from a newer kernel.

@k8s-ci-robot
Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@AkihiroSuda AkihiroSuda force-pushed the drop-libbtrfs branch 3 times, most recently from ac8d6b2 to ba2e2f7 Compare January 7, 2023 19:13
See containerd/btrfs PR 40 and moby/moby PR 44761. (Thanks to [@]neersighted.)

The containerd/btrfs library now requires headers from kernel 4.12 or newer:
- https://github.com/torvalds/linux/blob/master/include/uapi/linux/btrfs.h
- https://github.com/torvalds/linux/blob/master/include/uapi/linux/btrfs_tree.h

These files are licensed under the GPL-2.0 WITH Linux-syscall-note, so it should be compatible with the Apache License 2.0.
https://spdx.org/licenses/Linux-syscall-note.html

The dependency on the kernel headers only affects users building from source.
Users on older kernels may opt to not compile this library (`BUILDTAGS=no_btfs`),
or to provide headers from a newer kernel.

Signed-off-by: Akihiro Suda <[email protected]>
Copy link
Copy Markdown
Member

@dims dims left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the changes are in vendor/ so all good here with the changes in the rest of the files (yaml files for CI, go mod/sum etc)

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants