Signed-off-by: David Sterba <firstname.lastname@example.org>
|3 weeks ago|
|Documentation||3 weeks ago|
|check||3 weeks ago|
|ci||8 months ago|
|cmds||3 weeks ago|
|common||3 weeks ago|
|convert||2 months ago|
|crypto||1 year ago|
|image||2 months ago|
|kernel-lib||2 months ago|
|kernel-shared||3 weeks ago|
|libbtrfs||2 months ago|
|libbtrfsutil||10 months ago|
|m4||2 months ago|
|mkfs||3 weeks ago|
|tests||3 weeks ago|
|.editorconfig||2 years ago|
|.gitignore||7 months ago|
|64-btrfs-dm.rules||6 years ago|
|64-btrfs-zoned.rules||8 months ago|
|CHANGES||3 weeks ago|
|COPYING||16 years ago|
|INSTALL||5 months ago|
|Makefile||2 months ago|
|Makefile.extrawarn||3 years ago|
|Makefile.inc.in||2 months ago|
|README.md||5 months ago|
|VERSION||3 weeks ago|
|autogen.sh||5 years ago|
|btrfs-completion||2 years ago|
|btrfs-corrupt-block.c||2 months ago|
|btrfs-crc.c||3 years ago|
|btrfs-debugfs||2 years ago|
|btrfs-find-root.c||2 months ago|
|btrfs-fragments.c||2 years ago|
|btrfs-map-logical.c||5 months ago|
|btrfs-sb-mod.c||1 year ago|
|btrfs-select-super.c||1 year ago|
|btrfs.c||2 years ago|
|btrfstune.c||3 weeks ago|
|configure.ac||2 months ago|
|fsck.btrfs||7 years ago|
|ioctl.h||4 months ago|
|kerncompat.h||2 months ago|
|libbtrfs.sym||5 months ago|
|quick-test.c||2 years ago|
|random-test.c||2 years ago|
|show-blocks||5 years ago|
|version.h.in||8 years ago|
Userspace utilities to manage btrfs filesystems. License: GPLv2.
Btrfs is a copy on write (COW) filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration.
This repository hosts following utilities and also documentation:
- btrfs — the main administration tool (manual page)
- mkfs.btrfs — utility to create the filesystem (manual page)
- all-in-one binary in the busybox style with mkfs.btrfs, btrfs-image and other tools built-in (standalone tools)
- libbtrfsutil (LGPL v2.1) — C and python 3 bindings, see libbtrfsutil/README.md for more
- manual pages and documentation source published at btrfs.readthedocs.io
The major version releases are time-based and follow the cycle of the linux kernel releases. The cycle usually takes 2 months. A minor version releases may happen in the meantime if there are bug fixes or minor useful improvements queued.
There are several ways, each has its own specifics and audience that can give feedback or work on a fix. The following list is sorted in the order of preference:
- github issue tracker
- to the mailing list email@example.com -- (not required to subscribe), beware that the mail might get overlooked in other traffic
- IRC (irc.libera.chat #btrfs) -- good for discussions eg. if a bug is already known, but reports could miss developers' attention
- bugzilla.kernel.org -- (requires registration), set the product to Filesystems and component Btrfs, please put 'btrfs-progs' into the subject so it's clear that it's not a kernel bug report
The patch submissions, development or general discussions take place at firstname.lastname@example.org mailinglist, subsciption is not required to post.
The GitHub pull requests will not be accepted directly, the preferred way is to send patches to the mailinglist instead. You can link to a branch in any git repository if the mails do not make it to the mailinglist or just for convenience (makes it easier to test).
The development model of btrfs-progs shares a lot with the kernel model. The github way is different in some ways. We, the upstream community, expect that the patches meet some criteria (often lacking in github contributions):
- one logical change per patch: eg. not mixing bugfixes, cleanups, features etc., sometimes it's not clear and will be usually pointed out during reviews
- proper subject line: eg. prefix with btrfs-progs: subpart, ... ,
descriptive yet not too long, see
git log --onelinefor some inspiration
- proper changelog: the changelogs are often missing or lacking explanation why the change was made, or how is something broken, what are user-visible effects of the bug or the fix, how does an improvement help or the intended usecase
- the Signed-off-by line: this documents who authored the change, you can read
more about the
The Developer's Certificate of Origin (chapter 11)
- if you are not used to the signed-off style, your contributions won't be rejected just because of it's missing, the Author: tag will be added as a substitute in order to allow contributions without much bothering with formalities
Source code coding style and preferences follow the
kernel coding style.
You can find the editor settings in
.editorconfig and use the
EditorConfig plugin to let your editor use that,
or update your editor settings manually.
Documentation fixes or updates do not need much explanation so sticking to the code rules in the previous section is not necessary. GitHub pull requests are OK, patches could be sent to me directly and not required to be also in the mailinglist. Pointing out typos via IRC also works, although might get accidentally lost in the noise.
Documents are written in RST and built by sphinx.
Build dependencies are listed in INSTALL. Implementation of checksum/hash functions is provided by copies of the respective sources to avoid adding dependencies that would make deployments in rescure or limited environments harder. The implementations are portable and not optimized for speed nor accelerated. Optionally it's possible to use libgcrypt, libsodium or libkcapi implementations.
- CRC32C: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
- XXHASH: https://github.com/Cyan4973/xxHash
- SHA256: https://tools.ietf.org/html/rfc4634
- BLAKE2: https://github.com/BLAKE2/BLAKE2
Some other code is borrowed from kernel, eg. the raid5 tables or data structure implementation.