mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-09 00:00:04 +03:00
Merge pull request #24 from brendon-boldt/new-install-distros
New install distros
This commit is contained in:
commit
b74c93d43c
29
INSTALL
29
INSTALL
@ -15,11 +15,21 @@ Dependencies:
|
|||||||
* zlib1g
|
* zlib1g
|
||||||
* valgrind
|
* valgrind
|
||||||
|
|
||||||
On debian, you can install these with
|
Debian (Bullseye or later) and Ubuntu (20.04 or later): you can install these with
|
||||||
apt install -y pkg-config libaio-dev libblkid-dev libkeyutils-dev \
|
apt install -y pkg-config libaio-dev libblkid-dev libkeyutils-dev \
|
||||||
liblz4-dev libscrypt-dev libsodium-dev liburcu-dev libzstd-dev \
|
liblz4-dev libscrypt-dev libsodium-dev liburcu-dev libzstd-dev \
|
||||||
uuid-dev zlib1g-dev valgrind
|
uuid-dev zlib1g-dev valgrind
|
||||||
|
|
||||||
|
Fedora: install the "Development tools" group along with:
|
||||||
|
dnf install -y libaio-devel libsodium-devel \
|
||||||
|
libblkid-devel libzstd-devel zlib-devel userspace-rcu-devel \
|
||||||
|
lz4-devel libuuid-devel valgrind-devel keyutils-libs-devel \
|
||||||
|
libscrypt-devel findutils
|
||||||
|
|
||||||
|
Arch: install bcachefs-tools-git from the AUR.
|
||||||
|
Or to build from source, install libscrypt from the AUR along with,
|
||||||
|
pacman -S base-devel libaio keyutils libsodium liburcu zstd valgrind
|
||||||
|
|
||||||
Then, just make && make install
|
Then, just make && make install
|
||||||
|
|
||||||
|
|
||||||
@ -29,14 +39,21 @@ 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
|
an early stage and may corrupt your filesystem, so it should only be used for
|
||||||
testing. To enable, you'll also need to add:
|
testing. To enable, you'll also need to add:
|
||||||
|
|
||||||
* libfuse3
|
* libfuse3 >= 3.7
|
||||||
|
|
||||||
On debian:
|
On Debian/Ubuntu (Bullseye/20.04 or later needed for libfuse >= 3.7):
|
||||||
apt install -y libfuse3-dev
|
apt install -y libfuse3-dev
|
||||||
|
|
||||||
Then, make using the BCACHEFS_FUSE environment variable:
|
On Fedora (32 or later needed for lbifuse >= 3.7):
|
||||||
|
dnf install -y fuse3-devel
|
||||||
|
|
||||||
BCACHEFS_FUSE=1 make &&
|
Arch:
|
||||||
|
pacman -S fuse3
|
||||||
|
|
||||||
|
Then, make using the BCACHEFS_FUSE environment variable (make clean first if
|
||||||
|
previously built without fuse support):
|
||||||
|
|
||||||
|
BCACHEFS_FUSE=1 make && make install
|
||||||
|
|
||||||
|
|
||||||
-- Tests --
|
-- Tests --
|
||||||
@ -50,6 +67,8 @@ On debian:
|
|||||||
Then, you can run the tests via:
|
Then, you can run the tests via:
|
||||||
|
|
||||||
make check
|
make check
|
||||||
|
# or if pytest has a different name
|
||||||
|
make check PYTEST=pytest
|
||||||
|
|
||||||
Optionally, you may wish to run tests in parallel using python3-pytest-xdist:
|
Optionally, you may wish to run tests in parallel using python3-pytest-xdist:
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@ -41,7 +41,7 @@ endif
|
|||||||
|
|
||||||
PKGCONFIG_LIBS="blkid uuid liburcu libsodium zlib liblz4 libzstd"
|
PKGCONFIG_LIBS="blkid uuid liburcu libsodium zlib liblz4 libzstd"
|
||||||
ifdef BCACHEFS_FUSE
|
ifdef BCACHEFS_FUSE
|
||||||
PKGCONFIG_LIBS+="fuse3"
|
PKGCONFIG_LIBS+="fuse3 >= 3.7"
|
||||||
CFLAGS+=-DBCACHEFS_FUSE
|
CFLAGS+=-DBCACHEFS_FUSE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user