]> git.sesse.net Git - bcachefs-tools-debian/blob - INSTALL
f6c6041ed2fc6d90990c34e098451d4cfcaabe9e
[bcachefs-tools-debian] / INSTALL
1 -- Getting started --
2
3 Dependencies:
4
5  * libaio
6  * libblkid
7  * libkeyutils
8  * liblz4
9  * libscrypt
10  * libsodium
11  * liburcu
12  * libuuid
13  * libzstd
14  * pkg-config
15  * zlib1g
16  * valgrind
17
18 Debian (Bullseye or later) and Ubuntu (20.04 or later): you can install these with
19     apt install -y pkg-config libaio-dev libblkid-dev libkeyutils-dev \
20         liblz4-dev libscrypt-dev libsodium-dev liburcu-dev libzstd-dev \
21         uuid-dev zlib1g-dev valgrind libudev-dev
22
23 Fedora: install the "Development tools" group along with:
24     dnf install -y libaio-devel libsodium-devel \
25         libblkid-devel libzstd-devel zlib-devel userspace-rcu-devel \
26         lz4-devel libuuid-devel valgrind-devel keyutils-libs-devel \
27         libscrypt-devel findutils
28
29 Arch: install bcachefs-tools-git from the AUR.
30 Or to build from source, install libscrypt from the AUR along with,
31     pacman -S base-devel libaio keyutils libsodium liburcu zstd valgrind
32
33 Then, just make && make install
34
35 -- Debug build --
36
37 In order to perform extra checks on bcachefs tools, abort on any unforeseen warning and include support for valgrind, use 'make debug'.
38 This target will decrease performance and is specifically meant for developers
39
40 -- Experimental features --
41
42 Experimental fuse support is currently disabled by default. Fuse support is at
43 an early stage and may corrupt your filesystem, so it should only be used for
44 testing. To enable, you'll also need to add:
45
46 * libfuse3 >= 3.7
47
48 On Debian/Ubuntu (Bullseye/20.04 or later needed for libfuse >= 3.7):
49     apt install -y libfuse3-dev
50
51 On Fedora (32 or later needed for lbifuse >= 3.7):
52     dnf install -y fuse3-devel
53
54 Arch:
55     pacman -S fuse3
56
57 Then, make using the BCACHEFS_FUSE environment variable (make clean first if
58 previously built without fuse support):
59
60 BCACHEFS_FUSE=1 make && make install
61
62
63 -- Tests --
64
65 Some tests are available to validate the "bcachefs" binary.  The tests depend
66 on python3 pytest.
67
68 On debian:
69     apt install -u python3-pytest
70
71 Then, you can run the tests via:
72
73     make check
74     # or if pytest has a different name
75     make check PYTEST=pytest
76
77 Optionally, you may wish to run tests in parallel using python3-pytest-xdist:
78
79     cd tests; pytest-3 -n4