Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
16e18c5
Remove all the files
AkihiroSuda Jul 1, 2021
81237e8
Initial version. WIP.
dennwc Sep 14, 2016
9aa3cf0
Implement basic subvolume and snapshot commands. Exec-based send and …
dennwc Sep 15, 2016
4d60b72
implement subvolumes list; regenerate headers; generate btrfs_tree.h
dennwc Sep 16, 2016
9e60e55
native Send implementation
dennwc Sep 19, 2016
ea3cdb7
native Recv WIP
dennwc Sep 21, 2016
02f01e2
SetFlags and SetCompression
dennwc Sep 21, 2016
c30c81b
fix fd leak
dennwc Oct 1, 2016
b839242
refactor ListSubvolumes
dennwc Oct 1, 2016
470099e
expose GetMounts as a sub-package
dennwc Oct 5, 2016
fbb23e5
some docs
dennwc Oct 5, 2016
c6db025
implement GetCompression; add tests
dennwc Oct 5, 2016
24cd949
implement usage stats
dennwc Oct 6, 2016
e52d936
add helper to check for zero uuid
dennwc Oct 17, 2016
233b646
fix subvolume list
dennwc Oct 20, 2016
d8ac265
expose file clone ioctl; add test
dennwc Jan 6, 2017
01d4674
decode root_item; more tests; uuid search wip
dennwc Jan 7, 2017
f3c3c6a
implement send for multiple snapshots
dennwc Jan 8, 2017
eb1e931
expose balance ioc
dennwc Jan 9, 2017
14ca627
expose subvolume search functions; switch subvolume info structure
dennwc Jan 9, 2017
8dce338
send: fix diff int overflow
dennwc Jan 9, 2017
434eac4
send: recursive best parent search
dennwc Jan 10, 2017
a39a792
expose resize
dennwc Jan 11, 2017
91f666b
refactor send definitions
dennwc Nov 13, 2017
022e86b
send: implement stream reader
dennwc Nov 27, 2017
0018d9b
switch to dennwc/ioctl library
Oct 21, 2018
dd114cf
support go modules
dennwc Apr 26, 2019
4dd9ca3
expose method to get the subvolume id
dennwc May 17, 2019
c9f9681
cli: fix the package name
dennwc May 17, 2019
0746c78
do not expose unexported objectid type to the user
dennwc May 17, 2019
7d268be
Fix "constant 2435016766 overflows int32" on GOARCH=arm
AkihiroSuda Jun 25, 2021
7a5b584
Switch license to Apache 2 to be CNCF-friendly.
dennwc Jun 29, 2021
bf5ebcf
dennwc/btrfs -> containerd/btrfs/v2
AkihiroSuda Jul 1, 2021
0ebc59a
go generate: fix generator path + regenerate
AkihiroSuda Jul 1, 2021
c6b2e42
btrfs_test: fix import path
AkihiroSuda Jul 1, 2021
21aa2db
Add back containerd boilterplate (but as a non-core subproject)
AkihiroSuda Jul 1, 2021
38ecd2b
ioctl: import dennwc/ioctl
AkihiroSuda Jul 1, 2021
412d0f4
add back cmd/gbtrfs/go.mod
AkihiroSuda Jul 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ jobs:

- name: Project checks
uses: containerd/project-checks@v1
# Disabled during repo migration
if: false
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This TODO can be worked out after merging this PR

with:
working-directory: src/github.com/containerd/btrfs

- name: Build
- name: Test
working-directory: src/github.com/containerd/btrfs
run: |
make vet binaries
sudo go test -v ./...

- name: Build gbtrfs
working-directory: src/github.com/containerd/btrfs/cmd/gbtrfs
run: |
go build .
28 changes: 0 additions & 28 deletions .gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@
APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
boilerplate notice, with the fields enclosed by brackets "[]"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

lol

replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}
Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 8 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# containerd/btrfs maintainers
#
# As a containerd sub-project, containerd maintainers are also included from https://github.com/containerd/project/blob/main/MAINTAINERS.
# See https://github.com/containerd/project/blob/main/GOVERNANCE.md for description of maintainer role
#
# COMMITTERS
# GitHub ID, Name, Email address
"dennwc","Denys Smirnov","dennwc@pm.me"
34 changes: 0 additions & 34 deletions Makefile

This file was deleted.

14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# go-btrfs
# go-btrfs (v2)

[![PkgGoDev](https://pkg.go.dev/badge/github.com/containerd/btrfs)](https://pkg.go.dev/github.com/containerd/btrfs)
[![Build Status](https://github.com/containerd/btrfs/workflows/CI/badge.svg)](https://github.com/containerd/btrfs/actions?query=workflow%3ACI)
[![Go Report Card](https://goreportcard.com/badge/github.com/containerd/btrfs)](https://goreportcard.com/report/github.com/containerd/btrfs)

Native Go bindings for btrfs.

* v1 (`release/1.0` branch): legacy version with cgo. Used in containerd 1.5 and before.
* v2 (`main` branch): modern pure-Go implementation, adopted from [dennwc/btrfs](https://github.com/dennwc/btrfs).
Planned to be used in containerd 1.6.

# Status

These are in the early stages. We will try to maintain stability, but please
v2 codes are in the early stages. We will try to maintain stability, but please
vendor if you are relying on these directly.

# Contribute
Expand Down Expand Up @@ -37,10 +41,10 @@ documentation at https://github.com/kunalkushwaha/ltag

## Project details

btrfs is a containerd sub-project, licensed under the [Apache 2.0 license](./LICENSE).
As a containerd sub-project, you will find the:
containerd/btrfs is a containerd **non-core** sub-project, licensed under the [Apache 2.0 license](./LICENSE).
As a containerd non-core sub-project, you will find the:
* [Project governance](https://github.com/containerd/project/blob/master/GOVERNANCE.md),
* [Maintainers](https://github.com/containerd/project/blob/master/MAINTAINERS),
* [Maintainers](./MAINTAINERS),
* and [Contributing guidelines](https://github.com/containerd/project/blob/master/CONTRIBUTING.md)

information in our [`containerd/project`](https://github.com/containerd/project) repository.
33 changes: 0 additions & 33 deletions btrfs.c

This file was deleted.

Loading