Commit Graph

790 Commits

Author SHA1 Message Date
Kent Overstreet
6f8750c30e Update bcachefs sources to b1899a0bd9 bcachefs: Move bch2_evict_subvolume_inodes() to fs.c 2021-10-28 16:27:01 -04:00
Kent Overstreet
72a9f1015d Update bcachefs sources to 4c58f10d48 bcachefs: More general fix for transaction paths overflow 2021-10-25 18:32:51 -04:00
Kent Overstreet
1ce6454cfe Update bcachefs sources to cdf89ca564 bcachefs: Fix fsck path for refink pointers 2021-10-24 21:24:05 -04:00
Chris Webb
f5c0b67603 Cosmetic fixes for device resize-journal
Correct the operation name from 'journal-resize' to 'resize-journal' in the
bcachefs usage summary, matching the command that is actually implemented.

Fix the size argument so it isn't optional. Defaulting to the entire device
makes sense for 'device resize', to automatically expand the fs to fill the
block device. However, it is never meaningful (or possible) to expand the
journal to the full disk.

Signed-off-by: Chris Webb <chris@arachsys.com>
2021-10-24 11:39:36 -04:00
Chris Webb
49923376d1 Use scrypt from libsodium
bcachefs-tools has both libscrypt and libsodium as build dependencies,
but libsodium already includes the same scrypt implementation as libscrypt,
originally written by Colin Percival.

Use the libsodium copy, dropping the extra libscrypt dependency.

Explicitly adopt the default scrypt N, r and p values from libscrypt to
avoid unintended changes in the default work parameters for bcachefs.

Signed-off-by: Chris Webb <chris@arachsys.com>
2021-10-23 12:16:08 -04:00
Kent Overstreet
f9f57789de Update bcachefs sources to 6d1f979bc5 bcachefs: Subvol dirents are now only visible in parent subvol 2021-10-21 14:20:03 -04:00
Kent Overstreet
a2b0239593 Update bcachefs sources to 718df3f7c2 bcachefs: Fix restart handling in for_each_btree_key() 2021-10-21 13:09:39 -04:00
Kayla Firestack
41d10332bd switch to -n2 for pytest 2021-10-20 22:11:58 -04:00
Kayla Firestack
ae3e424b0c bcachefs-kernel: update hash 2021-10-20 22:11:58 -04:00
Kayla Firestack
11dbd981b4 nix overlay: convert sha to file 2021-10-20 14:47:28 -04:00
Kayla Firestack
505299bcde bcachefs-kernel.nix: rename sha256 function input
overlay.nix: rename diffHash to sha256

replaces diffHash function argument with the name sha256 for clarity

Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-20 14:47:28 -04:00
Kayla Firestack
ca3a42a70c flake.nix: add boot stage1 module test, which takes a long time to build
Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-20 14:47:28 -04:00
Kayla Firestack
c229fa7075 flake.nix: add netboot-bcachefs nixosSystem definition
define example bcachefs enabled nixos installer
allows netboot to nixos installer with bcachefs kernel and -tools installed

Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-20 14:47:28 -04:00
Kayla Firestack
fa27037e70 flake.nix: add nixosModules
Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-20 14:47:28 -04:00
Kayla Firestack
96f55bdb32 flake.nix: add mount developer environment
Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-20 14:47:28 -04:00
Kent Overstreet
7fa98d93f6 Update bcachefs sources to 4dd9a5a488 bcachefs: Fix for leaking of reflinked extents 2021-10-20 13:43:31 -04:00
Kent Overstreet
3db6ec44c5 Update bcachefs sources to d9d1235f3c bcachefs: Handle transaction restarts in bch2_blacklist_entries_gc() 2021-10-20 12:36:50 -04:00
Kayla Firestack
1fe24a0e83 edit default.nix to use the proper pytest variable 2021-10-20 09:53:04 -04:00
Kayla Firestack
ae3d49e823 Makefile: fix rst2man lookup and add pytest lookup
add pytest and rst2man lookups though command-v and which if available,
default to ENV/ARGS in the case of user specified locations and otherwise lookup via shell

Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-20 09:30:16 -04:00
Kayla Firestack
045f7d2ba1 Makefile: prefix libbcachefs.so installation with DESTDIR
Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-19 14:43:08 -04:00
Kent Overstreet
06a4dda333 Merge remote-tracking branch 'firestack/dev/nix/add-which' 2021-10-19 14:32:04 -04:00
Kayla Firestack
f403ef61e7 rst2man: convert which to command -v
Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-19 14:28:34 -04:00
Kent Overstreet
f10fc03854 Update bcachefs sources to 720f644e63 bcachefs: Improve reflink repair code 2021-10-19 13:50:45 -04:00
Igor Velkov
a77c35a1c4 fix "no rst2man found!" build error on debian and ubuntu 2021-10-18 17:41:11 -04:00
Igor Velkov
6e46ae07fa add missing python3, python3-docutils dependency 2021-10-18 17:41:11 -04:00
Kent Overstreet
4ee9ebc32e Build with -fPIC
The changes to how we integrate with rust code mean that we now need to
be emitting position indepedent code.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-10-18 16:57:08 -04:00
Kayla Firestack
3db34427e6 add nixos check
add cachix action
2021-10-18 16:31:21 -04:00
Kayla Firestack
1f8fc31ddc split mount into a library crate for rust reuse
update makefile to output shared library and rust build
fix default.nix to properly get the binary name for `ln`ing - move binary to main.rs
add rustfmt and gitignore files
move build.rs file into bch_bindgen for reuse between projects
add outputs to nix flake and checks
add mount.toml to makefile
2021-10-18 16:30:52 -04:00
Kayla Firestack
7e97ef59bd add mount and bch-bindgen nix builder file
update kernel diffHash
2021-10-18 12:34:12 -04:00
Kayla Firestack
26d6b3464a move mount into rust-src, add to overlay 2021-10-18 12:21:23 -04:00
Kayla Firestack
5625937162 add nix flake with checks, overlay, and default package 2021-10-18 11:30:30 -04:00
Kayla Firestack
e70c66e3b5 update default.nix to use latest dependencies and newer stdenv, as well as be flake compatible and overlay compatible 2021-10-18 11:30:30 -04:00
Kayla Firestack
b7254160d9 add kernel nix builder 2021-10-18 11:30:30 -04:00
Kayla Firestack
0d122879d1 add overlay 2021-10-18 11:30:30 -04:00
Brett Holman
2de72a59e0 Fix 32 bit io regression
In commit ba1dbafc1f I reverted 9942fc82d4, which was a workaround
for an upstream 32bit libaio bug. Oops.

Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-16 18:28:49 -06:00
Brett Holman
76821f0760 make BIO_MAX_VECS unsigned, like the kernel definition
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-16 13:41:43 -06:00
Kent Overstreet
2b8c1fc5c9 Update bcachefs sources to 710cd382bf bcachefs: Fix for leaking of reflinked extents 2021-10-14 11:22:05 -04:00
Kent Overstreet
e489658c49 Update bcachefs sources to 07c2895cb3 bcachefs: Add a valgrind memcheck hint 2021-10-13 11:00:02 -04:00
Brett Holman
385dcecb96 Update valgrind suppressions file for urcu leak.
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-12 20:22:45 -06:00
Brett Holman
08420d2481 Fix errors related to rst2man warning message:
- Warning message doesn't print and causes build to exit.
- .SHELLSTATUS doesn't work on some versions of Make.

Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-12 00:37:02 -04:00
Brett Holman
60a6b2882e Clean up smoketest and pytests.
- Replace depreciated tempfile with mktemp in smoketest.
- Remove unused pytest imports and variables.
- Make path lookup less fragile. Allows pytest to run from any cwd.
- Prevent exeptions caused by calling functions/methods on None objects.
- Disable fuse tests in smoketest. These are broken and add noise.
- Add missing travis CI dependency.

Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-11 20:24:12 -06:00
Brett Holman
ba1dbafc1f Fall back to synchronous io when kernel doesn't support aio.
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-10 15:23:57 -06:00
Kent Overstreet
2225e9a372 Correctly print out error from io_setup()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-10-09 16:20:28 -04:00
Kayla Fire
3f7b0b0832 pytest: remove arbitrary assertion 2021-10-05 11:44:57 -04:00
Kent Overstreet
37850436dd Update bcachefs sources to 4114ced1db bcachefs: Fix allocator shutdown error message 2021-10-01 10:10:55 -04:00
Kent Overstreet
beb0846724 Print better error message when shrinking is attempted
Shrinking's not supported yet.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-09-30 17:15:29 -04:00
Kent Overstreet
ba69a1b1c4 Update bcachefs sources to 0762d9c294 bcachefs: Fix check_inode_update_hardlinks() 2021-09-30 11:10:49 -04:00
Kent Overstreet
49ba8d0ef6 Update bcachefs sources to 6c5219caf0 bcachefs: Rev the on disk format version for snapshots 2021-09-27 13:32:44 -04:00
Kent Overstreet
d214908864 Subvolume commands 2021-09-26 19:50:47 -04:00
Kent Overstreet
e61b61c03b Update bcachefs sources to 386f00b639 bcachefs: Snapshot creation, deletion 2021-09-26 19:50:47 -04:00