diff --git a/README.md b/README.md index 4d0f273..f6c4720 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,23 @@ is missing, please don't hesitate to submit a PR. Note that due to struct alignment issues, this isn't yet fully native. Preferrably, this could be resolved, so contributions in this direction are greatly appreciated. + +## Applying License Header to New Files + +If you submit a contribution that adds a new file, please add the license +header. You can do so manually or use the `ltag` tool: + + +```console +$ go get github.com/kunalkushwaha/ltag +$ ltag -t ./license-templates +``` + +The above will add the appropriate licenses to Go files. New templates will +need to be added if other kinds of files are added. Please consult the +documentation at https://github.com/ + +# License + +The copyright to this repository is held by the The containerd Authors and the +codebase is released under the [Apache 2.0 license](LICENSE). diff --git a/btrfs.go b/btrfs.go index efdf528..015cb62 100644 --- a/btrfs.go +++ b/btrfs.go @@ -1,3 +1,18 @@ +/* + Copyright The containerd Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ package btrfs import "sort" diff --git a/cmd/btrfs-test/main.go b/cmd/btrfs-test/main.go index 6cbadd0..abe8f93 100644 --- a/cmd/btrfs-test/main.go +++ b/cmd/btrfs-test/main.go @@ -1,3 +1,18 @@ +/* + Copyright The containerd Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ package main import ( diff --git a/doc.go b/doc.go new file mode 100644 index 0000000..8d572dd --- /dev/null +++ b/doc.go @@ -0,0 +1,17 @@ +/* + Copyright The containerd Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +// Package btrfs provides bindings for working with btrfs partitions from Go. +package btrfs diff --git a/helpers.go b/helpers.go index cc417ab..a482706 100644 --- a/helpers.go +++ b/helpers.go @@ -1,3 +1,18 @@ +/* + Copyright The containerd Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ package btrfs /* diff --git a/info.go b/info.go index 9850c9b..c283a4e 100644 --- a/info.go +++ b/info.go @@ -1,3 +1,18 @@ +/* + Copyright The containerd Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ package btrfs // Info describes metadata about a btrfs subvolume. diff --git a/ioctl.go b/ioctl.go index 369b6d0..8df9bd0 100644 --- a/ioctl.go +++ b/ioctl.go @@ -1,3 +1,18 @@ +/* + Copyright The containerd Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ package btrfs import "syscall"