2019-11-11 23:00:08 +03:00
|
|
|
-- Getting started --
|
2016-08-29 05:00:50 +03:00
|
|
|
|
|
|
|
Dependencies:
|
|
|
|
|
2019-01-14 11:04:11 +03:00
|
|
|
* libaio
|
2016-08-29 05:00:50 +03:00
|
|
|
* libblkid
|
2019-01-14 11:04:11 +03:00
|
|
|
* libkeyutils
|
|
|
|
* liblz4
|
2016-08-29 05:00:50 +03:00
|
|
|
* libscrypt
|
|
|
|
* libsodium
|
2017-03-10 23:48:39 +03:00
|
|
|
* liburcu
|
2019-01-14 11:04:11 +03:00
|
|
|
* libuuid
|
|
|
|
* libzstd
|
2017-03-10 23:48:39 +03:00
|
|
|
* pkg-config
|
|
|
|
* zlib1g
|
2019-10-05 00:18:33 +03:00
|
|
|
* valgrind
|
2016-08-29 05:00:50 +03:00
|
|
|
|
|
|
|
On debian, you can install these with
|
2019-01-14 11:04:11 +03:00
|
|
|
apt install -y pkg-config libaio-dev libblkid-dev libkeyutils-dev \
|
|
|
|
liblz4-dev libscrypt-dev libsodium-dev liburcu-dev libzstd-dev \
|
2019-10-05 00:18:33 +03:00
|
|
|
uuid-dev zlib1g-dev valgrind
|
2016-08-29 05:00:50 +03:00
|
|
|
|
|
|
|
Then, just make && make install
|
2019-11-11 23:00:08 +03:00
|
|
|
|
|
|
|
|
|
|
|
-- Experimental features --
|
|
|
|
|
|
|
|
Experimental fuse support is currently disabled by default. Fuse support is at
|
|
|
|
an early stage and may corrupt your filesystem, so it should only be used for
|
|
|
|
testing. To enable, you'll also need to add:
|
|
|
|
|
|
|
|
* libfuse3
|
|
|
|
|
|
|
|
On debian:
|
|
|
|
apt install -y libfuse3-dev
|
|
|
|
|
|
|
|
Then, make using the BCACHEFS_FUSE environment variable:
|
|
|
|
|
|
|
|
BCACHEFS_FUSE=1 make &&
|
|
|
|
|
|
|
|
|
|
|
|
-- Tests --
|
|
|
|
|
|
|
|
Some tests are available to validate the "bcachefs" binary. The tests depend
|
|
|
|
on python3 pytest.
|
|
|
|
|
|
|
|
On debian:
|
2019-11-19 00:51:31 +03:00
|
|
|
apt install -u python3-pytest
|
2019-11-11 23:00:08 +03:00
|
|
|
|
|
|
|
Then, you can run the tests via:
|
|
|
|
|
2019-11-19 00:51:31 +03:00
|
|
|
make check
|
|
|
|
|
|
|
|
Optionally, you may wish to run tests in parallel using python3-pytest-xdist:
|
|
|
|
|
|
|
|
cd tests; pytest-3 -n4
|