]> git.sesse.net Git - bcachefs-tools-debian/log
bcachefs-tools-debian
14 months agoUpdate bcachefs sources to 504729f99c bcachefs: Allow answering y or n to all fsck...
Kent Overstreet [Mon, 10 Apr 2023 18:39:18 +0000 (14:39 -0400)]
Update bcachefs sources to 504729f99c bcachefs: Allow answering y or n to all fsck errors of given type

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
14 months agoUpdate bcachefs sources to 8fd009dd76 bcachefs: Rip out code for storing backpointers...
Kent Overstreet [Fri, 31 Mar 2023 19:52:24 +0000 (15:52 -0400)]
Update bcachefs sources to 8fd009dd76 bcachefs: Rip out code for storing backpointers in alloc keys

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
14 months agoFix build dependencies
Kent Overstreet [Sun, 19 Mar 2023 19:32:43 +0000 (15:32 -0400)]
Fix build dependencies

Incremental builds are fast again

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
14 months agoAdd packaging workflow
Alexander Fougner [Mon, 13 Mar 2023 17:45:15 +0000 (18:45 +0100)]
Add packaging workflow

Package and publish deb+rpm for easy testing

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
15 months agoUpdate bcachefs sources to 0342eebf85 bcachefs: Improve the backpointer to missing...
Kent Overstreet [Wed, 15 Mar 2023 12:59:01 +0000 (08:59 -0400)]
Update bcachefs sources to 0342eebf85 bcachefs: Improve the backpointer to missing extent message

15 months agoUpdate bcachefs sources to 72405e7ff8 bcachefs: Fix bch2_check_extents_to_backpointers()
Kent Overstreet [Tue, 14 Mar 2023 16:56:38 +0000 (12:56 -0400)]
Update bcachefs sources to 72405e7ff8 bcachefs: Fix bch2_check_extents_to_backpointers()

15 months agoAdd manpage for mount command
Alexander Fougner [Wed, 8 Mar 2023 19:57:50 +0000 (20:57 +0100)]
Add manpage for mount command

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
15 months agoRemove cmd_assemble docs
Alexander Fougner [Tue, 7 Mar 2023 19:42:11 +0000 (20:42 +0100)]
Remove cmd_assemble docs

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
15 months agolinux shim: Fix dropped O_DIRECT flag
Kent Overstreet [Wed, 8 Mar 2023 15:30:16 +0000 (10:30 -0500)]
linux shim: Fix dropped O_DIRECT flag

A recent libbcachefs update accidentally committed a change that dropped
the O_DIRECT flag - we definitely didn't want to do that.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoadd rpm make target and fix up spec file
Eric Sandeen [Wed, 8 Mar 2023 15:25:13 +0000 (09:25 -0600)]
add rpm make target and fix up spec file

Add a new make target to build an rpm. This uses rpmbuild --build-in-place,
so no SRPM is created.

Also clean up the specfile to remove manually-added Requires: that will
be auto-generated, add a couple new BuildRequires: and use macros for
file locations.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
15 months agoUpdate docs
Alexander Fougner [Sun, 5 Mar 2023 14:43:45 +0000 (15:43 +0100)]
Update docs

- add some project info for the main readme
- migrate readmes to markdown for improved formatting
- The main binary now requires the Rust toolchain, so make note of it
  in the build instructions.

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
15 months agocmd_list.rs: Finish list modes, delete cmd_list.c
Kent Overstreet [Mon, 6 Mar 2023 07:21:52 +0000 (02:21 -0500)]
cmd_list.rs: Finish list modes, delete cmd_list.c

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoUpdate bcachefs sources to 3856459b1b bcachefs: bch2_btree_iter_peek_node_and_restart()
Kent Overstreet [Mon, 6 Mar 2023 07:35:56 +0000 (02:35 -0500)]
Update bcachefs sources to 3856459b1b bcachefs: bch2_btree_iter_peek_node_and_restart()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoAdd rust toolchain to debian build-deps
Alexander Fougner [Sat, 25 Feb 2023 12:48:51 +0000 (13:48 +0100)]
Add rust toolchain to debian build-deps

Fixes building the .deb

- also add missing libudev to debian build deps

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
15 months agorust: Implement BtreeNodeIter
Kent Overstreet [Sun, 5 Mar 2023 03:06:01 +0000 (22:06 -0500)]
rust: Implement BtreeNodeIter

This implements BtreeNodeIter, and adds it to cmd_list.rs - the next
step in having a full replacement for cmd_list.c

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoUpdate bcachefs sources to 171da96d76 bcachefs: Drop some anonymous structs, unions
Kent Overstreet [Sun, 5 Mar 2023 03:47:04 +0000 (22:47 -0500)]
Update bcachefs sources to 171da96d76 bcachefs: Drop some anonymous structs, unions

15 months agorust: Fix ptr casting in Fs::open()
Kent Overstreet [Sat, 4 Mar 2023 12:35:29 +0000 (07:35 -0500)]
rust: Fix ptr casting in Fs::open()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoUpdate bcachefs sources to 2272c5f5b7 bcachefs: Mark stripe buckets with correct...
Kent Overstreet [Fri, 3 Mar 2023 05:39:26 +0000 (00:39 -0500)]
Update bcachefs sources to 2272c5f5b7 bcachefs: Mark stripe buckets with correct data type

15 months agolinux shim: hlist_unhashed()
Kent Overstreet [Fri, 3 Mar 2023 04:00:03 +0000 (23:00 -0500)]
linux shim: hlist_unhashed()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agorust: BkeySC now has correct lifetime on BtreeIter
Kent Overstreet [Fri, 3 Mar 2023 03:01:00 +0000 (22:01 -0500)]
rust: BkeySC now has correct lifetime on BtreeIter

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agorust: Filesystem options now supported
Kent Overstreet [Tue, 28 Feb 2023 11:15:48 +0000 (06:15 -0500)]
rust: Filesystem options now supported

This implements opt_set!(), which works exactly the same as the C
version and allows filesystem options to be specified in Rust code.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agorust: BtreeTrans lifetime now marked w.r.t. Fs
Kent Overstreet [Tue, 28 Feb 2023 07:28:44 +0000 (02:28 -0500)]
rust: BtreeTrans lifetime now marked w.r.t. Fs

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agorust: BkeyValC
Kent Overstreet [Tue, 28 Feb 2023 07:11:05 +0000 (02:11 -0500)]
rust: BkeyValC

Now we have a rust-style enum for key types

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agorust: BkeySC
Kent Overstreet [Tue, 28 Feb 2023 06:01:50 +0000 (01:01 -0500)]
rust: BkeySC

Implement a rust equivalent to bkey_s_c, which uses references with the
correct lifetimes: now cmd_list.rs doesn't need unsafe.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agobcachefs: Annotate BtreeIter with BtreeTrans lifetime
Kent Overstreet [Tue, 28 Feb 2023 05:34:43 +0000 (00:34 -0500)]
bcachefs: Annotate BtreeIter with BtreeTrans lifetime

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agorust: Simplify bpos FromStr
Kent Overstreet [Tue, 28 Feb 2023 05:33:42 +0000 (00:33 -0500)]
rust: Simplify bpos FromStr

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agorust: BtreeIterFlags
Kent Overstreet [Tue, 28 Feb 2023 03:15:10 +0000 (22:15 -0500)]
rust: BtreeIterFlags

This adds a new wrapper type for btree iterator flags.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoUpdate bcachefs sources to a5da815430 bcachefs: Convert constants to consts
Kent Overstreet [Tue, 28 Feb 2023 03:14:56 +0000 (22:14 -0500)]
Update bcachefs sources to a5da815430 bcachefs: Convert constants to consts

15 months agoRust: Start of cmd_list rewrite
Kent Overstreet [Mon, 27 Feb 2023 02:38:12 +0000 (21:38 -0500)]
Rust: Start of cmd_list rewrite

This is a _very_ preliminary rewrite of the cmd_list tool in rust, which
is intended to be a testing ground for a safe interface in Rust to the
core btree interface. This adds rust wrappers for:

bch_fs: provides bch2_fs_open(), bch2_fs_stop
btree_trans: provides bch2_trans_init(), bch2_trans_exit()
btree_iter: provides peek, peek_and_restart, advance
bch_errcode: implements Display (wraps bch2_err_str())
bpos: implements Ord (wraps bpos_cmp())
bkey_s_c: implements Display (wraps bch2_bkey_val_to_text())

and other assorted types.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoUpdate bcachefs sources to ca97ee3577 bcachefs: bch2_btree_iter_peek_and_restart_outl...
Kent Overstreet [Mon, 27 Feb 2023 02:36:39 +0000 (21:36 -0500)]
Update bcachefs sources to ca97ee3577 bcachefs: bch2_btree_iter_peek_and_restart_outlined()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agonix fix up! Rust now integrated into bcachefs binary
Daniel Hill [Mon, 27 Feb 2023 03:34:06 +0000 (16:34 +1300)]
nix fix up! Rust now integrated into bcachefs binary

Heavily simplified to just call make with the required rust dependencies.

Signed-off-by: Daniel Hill <daniel@gluo.nz>
15 months agoMade the -k option for mount.bcachefs default to ask, without messing up formatting
Westly Ward [Wed, 22 Feb 2023 20:00:45 +0000 (13:00 -0700)]
Made the -k option for mount.bcachefs default to ask, without messing up formatting

Signed-off-by: Westly Ward <sonicrules1234@gmail.com>
15 months agocmd_list_journal: Highlight entries matching transaction filter
Kent Overstreet [Tue, 21 Feb 2023 22:21:18 +0000 (17:21 -0500)]
cmd_list_journal: Highlight entries matching transaction filter

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agorust-src: Clean up read_super bindings
Kent Overstreet [Tue, 21 Feb 2023 20:58:42 +0000 (15:58 -0500)]
rust-src: Clean up read_super bindings

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoMore rust improvements
Kent Overstreet [Tue, 21 Feb 2023 19:39:43 +0000 (14:39 -0500)]
More rust improvements

 - passing of arguments from c -> rust code now works correctly
 - 'bcachefs mount' now handles being passed a device or devices

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agofixup! Rust now integrated into bcachefs binary
Kent Overstreet [Tue, 21 Feb 2023 08:02:06 +0000 (03:02 -0500)]
fixup! Rust now integrated into bcachefs binary

15 months agoRust now integrated into bcachefs binary
Kent Overstreet [Wed, 4 Jan 2023 03:31:36 +0000 (22:31 -0500)]
Rust now integrated into bcachefs binary

Rust is now required for building the bcachefs tool, and rust code is
now fully integrated with the C codebase - meaning it is possible to
call back and forth.

The mount helper is now a subcommand, 'mount.bcachefs' is now a small
shell wrapper that invokes 'bcachefs mount'.

This will make it easier to start rewriting other subcommands in rust,
and eventually the whole command line interface.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoUpdate bcachefs sources to 8e1519ccb6 bcachefs: Add tracepoint & counter for btree...
Kent Overstreet [Mon, 20 Feb 2023 23:55:08 +0000 (18:55 -0500)]
Update bcachefs sources to 8e1519ccb6 bcachefs: Add tracepoint & counter for btree split race

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
15 months agoUpdate bcachefs sources to 1b14994029 bcachefs: Fragmentation LRU
Kent Overstreet [Fri, 17 Feb 2023 22:51:22 +0000 (17:51 -0500)]
Update bcachefs sources to 1b14994029 bcachefs: Fragmentation LRU

16 months agoFix cpu_relax()
Kent Overstreet [Mon, 13 Feb 2023 22:51:14 +0000 (17:51 -0500)]
Fix cpu_relax()

cpu_relax() is supposed to be a compiler barrier - this fixes a bug with
btree_write_buffer_flush() getting stuck.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
16 months agoUpdate bcachefs sources to 8dbfede1d9 fixup! bcachefs: More info on check_bucket_ref...
Kent Overstreet [Mon, 13 Feb 2023 20:51:27 +0000 (15:51 -0500)]
Update bcachefs sources to 8dbfede1d9 fixup! bcachefs: More info on check_bucket_ref() error

16 months agocmd_list_journal: Add filter options
Kent Overstreet [Mon, 13 Feb 2023 02:44:33 +0000 (21:44 -0500)]
cmd_list_journal: Add filter options

Instead of having to use grep, this adds the ability to print out only
transactions that update a particular key, or to filter out entirely
keys except those updating certain btrees.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
16 months agoUpdate bcachefs sources to 3e0c5b0722 fixup! bcachefs: Btree write buffer
Kent Overstreet [Mon, 13 Feb 2023 02:40:59 +0000 (21:40 -0500)]
Update bcachefs sources to 3e0c5b0722 fixup! bcachefs: Btree write buffer

16 months agomount: support remount
Daniel Hill [Sat, 11 Feb 2023 00:45:23 +0000 (13:45 +1300)]
mount: support remount

remount is handled by libc, not the kernel mount procedure, this fixes
remounts. Also sorted the list of flags.

Signed-off-by: Daniel Hill <daniel@gluo.nz>
16 months agoUpdate bcachefs sources to dab31ca168 bcachefs: Add some logging for btree node rewri...
Kent Overstreet [Fri, 10 Feb 2023 20:49:12 +0000 (15:49 -0500)]
Update bcachefs sources to dab31ca168 bcachefs: Add some logging for btree node rewrites due to errors

16 months agoUpdate bcachefs sources to ea93c26e98 fixup! bcachefs: We can handle missing btree...
Kent Overstreet [Thu, 9 Feb 2023 23:34:08 +0000 (18:34 -0500)]
Update bcachefs sources to ea93c26e98 fixup! bcachefs: We can handle missing btree roots for all alloc btrees

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
16 months agonix: fix compilation issues
Daniel Hill [Wed, 1 Feb 2023 23:54:04 +0000 (12:54 +1300)]
nix: fix compilation issues

Update Cargo.lock files to match new dependancies
Bump nixpkgs pin

16 months agoMakefile: build with -Wno-deprecated-declarations
Kent Overstreet [Wed, 1 Feb 2023 21:27:32 +0000 (16:27 -0500)]
Makefile: build with -Wno-deprecated-declarations

This fixes a ZSTD warning.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
16 months agocmd_fsck: Add --ratelimit_errors option
Kent Overstreet [Wed, 1 Feb 2023 20:37:05 +0000 (15:37 -0500)]
cmd_fsck: Add --ratelimit_errors option

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
16 months agofixup! nix: overhaul build system.
Daniel Hill [Tue, 3 Jan 2023 08:38:11 +0000 (21:38 +1300)]
fixup! nix: overhaul build system.

Signed-off-by: Daniel Hill <daniel@gluo.nz>
16 months agorust: replace tracing with logger
Alexander Fougner [Mon, 16 Jan 2023 16:08:52 +0000 (17:08 +0100)]
rust: replace tracing with logger

tracing framework is a overengineered for simple mount helper. Add a
few very barebone logging macros to allow configurable verbosity and
colorized output with a small footprint.

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
17 months agorust: use rustfmt defaults
Alexander Fougner [Mon, 16 Jan 2023 08:22:49 +0000 (09:22 +0100)]
rust: use rustfmt defaults

follow the kernel style guide, i.e idiomatic rust style.

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
17 months agorust: suppress errors on fs probing
Alexander Fougner [Sun, 15 Jan 2023 20:57:04 +0000 (21:57 +0100)]
rust: suppress errors on fs probing

suppress errors for any non-bchfs blockdevs found during probing

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
17 months agorust: support fstab style mount
Alexander Fougner [Thu, 12 Jan 2023 19:35:23 +0000 (20:35 +0100)]
rust: support fstab style mount

- add support for fstab format, UUID=<uuid>

- structopt is no longer actively maintained, replace with clap v4
  which support everything structopt can and more.

- update dependencies

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
17 months agomake: remove libbcachefs.so when cleaning.
Daniel Hill [Wed, 30 Nov 2022 01:12:27 +0000 (14:12 +1300)]
make: remove libbcachefs.so when cleaning.

Signed-off-by: Daniel Hill <daniel@gluo.nz>
17 months agonix: overhaul build system.
Daniel Hill [Thu, 24 Nov 2022 23:47:29 +0000 (12:47 +1300)]
nix: overhaul build system.

Removed outdated overlay.
Simply build tooling using bingenHook and propagated*Inputs

Signed-off-by: Daniel Hill <daniel@gluo.nz>
17 months agorust: update bindgen to 0.63
Daniel Hill [Sat, 26 Nov 2022 01:39:39 +0000 (14:39 +1300)]
rust: update bindgen to 0.63

Signed-off-by: Daniel Hill <daniel@gluo.nz>
17 months agoMerge https://github.com/fougner/bcachefs-tools
Kent Overstreet [Thu, 29 Dec 2022 17:31:29 +0000 (12:31 -0500)]
Merge https://github.com/fougner/bcachefs-tools

17 months agodoc: fix formatting
Alexander Fougner [Thu, 29 Dec 2022 15:48:54 +0000 (16:48 +0100)]
doc: fix formatting

fix misnomer and some formatting

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
17 months agoGet current metadata version from sysfs
Kent Overstreet [Thu, 22 Dec 2022 02:41:34 +0000 (21:41 -0500)]
Get current metadata version from sysfs

This changes the default version for the format command to be the
currently supported version, via
/sys/modules/bcachefs/parameters/version.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
17 months agoUpdate bcachefs sources to 0939e1c732 fixup! bcachefs: Rework lru btree
Kent Overstreet [Tue, 20 Dec 2022 03:24:41 +0000 (22:24 -0500)]
Update bcachefs sources to 0939e1c732 fixup! bcachefs: Rework lru btree

17 months agoUpdate bcachefs sources to 2e8463c770 bcachefs: Rework lru btree
Kent Overstreet [Mon, 19 Dec 2022 23:31:44 +0000 (18:31 -0500)]
Update bcachefs sources to 2e8463c770 bcachefs: Rework lru btree

17 months agoUpdate bcachefs sources to c801fa69f0 bcachefs: Fix bch_alloc_to_text()
Kent Overstreet [Mon, 19 Dec 2022 21:06:33 +0000 (16:06 -0500)]
Update bcachefs sources to c801fa69f0 bcachefs: Fix bch_alloc_to_text()

17 months agoUse bch2_err_str() instead of strerror()
Kent Overstreet [Mon, 19 Dec 2022 21:05:54 +0000 (16:05 -0500)]
Use bch2_err_str() instead of strerror()

This correctly prints out our private error codes.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
17 months agoChange memory reclaim
Kent Overstreet [Mon, 19 Dec 2022 19:47:42 +0000 (14:47 -0500)]
Change memory reclaim

 - Spin up a background thread to call the shrinkers every 1 second
 - Memory allocations will only call reclaim after a failed allocation,
   not every single time

This will be a major performance boost on allocation intensive
workloads.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
17 months agoUpdate bcachefs sources to 7958ebe324 bcachefs: Fix alloc_v4_backpointers()
Kent Overstreet [Mon, 19 Dec 2022 19:47:35 +0000 (14:47 -0500)]
Update bcachefs sources to 7958ebe324 bcachefs: Fix alloc_v4_backpointers()

18 months agoUpdate bcachefs sources to 84505cfd37 bcachefs: Go RW before check_alloc_info()
Kent Overstreet [Tue, 13 Dec 2022 23:27:31 +0000 (18:27 -0500)]
Update bcachefs sources to 84505cfd37 bcachefs: Go RW before check_alloc_info()

18 months agoUpdate bcachefs sources to ed2a5f4260 bcachefs: Add a missing bch2_btree_path_travers...
Kent Overstreet [Fri, 9 Dec 2022 21:40:07 +0000 (16:40 -0500)]
Update bcachefs sources to ed2a5f4260 bcachefs: Add a missing bch2_btree_path_traverse() call

18 months agoUpdate bcachefs sources to de3b30303e bcachefs: bucket_gens btree
Kent Overstreet [Sat, 3 Dec 2022 02:55:01 +0000 (21:55 -0500)]
Update bcachefs sources to de3b30303e bcachefs: bucket_gens btree

18 months agoUpdate bcachefs sources to be2d60d948 bcachefs: New magic number
Kent Overstreet [Sat, 3 Dec 2022 00:47:25 +0000 (19:47 -0500)]
Update bcachefs sources to be2d60d948 bcachefs: New magic number

18 months agoUpdate bcachefs sources to f1c9030ccb bcachefs: Don't error out when just reading...
Kent Overstreet [Thu, 1 Dec 2022 16:20:40 +0000 (11:20 -0500)]
Update bcachefs sources to f1c9030ccb bcachefs: Don't error out when just reading the journal

18 months agoUpdate bcachefs sources to eabde7cb37 fixup! bcachefs: Optimize bch2_alloc_to_v4()
Kent Overstreet [Wed, 30 Nov 2022 15:41:00 +0000 (10:41 -0500)]
Update bcachefs sources to eabde7cb37 fixup! bcachefs: Optimize bch2_alloc_to_v4()

18 months agoUpdate bcachefs sources to 8a65cc4951 bcachefs: Improve bch2_dev_freespace_init()
Kent Overstreet [Tue, 29 Nov 2022 06:15:08 +0000 (01:15 -0500)]
Update bcachefs sources to 8a65cc4951 bcachefs: Improve bch2_dev_freespace_init()

18 months agoUpdate bcachefs sources to 5963d1b1a4 bcacehfs: Fix bch2_get_alloc_in_memory_pos()
Kent Overstreet [Sat, 26 Nov 2022 22:09:59 +0000 (17:09 -0500)]
Update bcachefs sources to 5963d1b1a4 bcacehfs: Fix bch2_get_alloc_in_memory_pos()

18 months agoFix build against musl libc.
Stijn Tintel [Thu, 24 Nov 2022 04:21:06 +0000 (06:21 +0200)]
Fix build against musl libc.

The musl C library does not define __attribute_const__. Add it to
include/linux/compiler.h with a guard to fix build against musl libc.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
18 months agoUpdate bcachefs sources to ea47add37d bcachefs: More errcode cleanup
Kent Overstreet [Sun, 20 Nov 2022 05:15:11 +0000 (00:15 -0500)]
Update bcachefs sources to ea47add37d bcachefs: More errcode cleanup

18 months agoUpdate bcachefs sources to ed88ebf18c bcachefs: Handle last journal write being torn
Kent Overstreet [Sun, 20 Nov 2022 02:45:00 +0000 (21:45 -0500)]
Update bcachefs sources to ed88ebf18c bcachefs: Handle last journal write being torn

18 months agoUpdate bcachefs sources to 586e7c5498 bcachefs: Improve journal_read() logging
Kent Overstreet [Sun, 20 Nov 2022 02:29:01 +0000 (21:29 -0500)]
Update bcachefs sources to 586e7c5498 bcachefs: Improve journal_read() logging

18 months agorust-src: cargo update
Kent Overstreet [Sun, 20 Nov 2022 00:00:25 +0000 (19:00 -0500)]
rust-src: cargo update

Update locked dependencies

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
18 months agolinux/blkdev.c: Fall back to buffered IO when O_DIRECT fails
Kent Overstreet [Sat, 19 Nov 2022 23:59:55 +0000 (18:59 -0500)]
linux/blkdev.c: Fall back to buffered IO when O_DIRECT fails

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
18 months agoUpdate bcachefs sources to 4366ca365f fixup! bcachefs: Btree split improvement
Kent Overstreet [Fri, 18 Nov 2022 23:23:28 +0000 (18:23 -0500)]
Update bcachefs sources to 4366ca365f fixup! bcachefs: Btree split improvement

18 months agoUpdate bcachefs sources to 6406e05835 bcachefs: Nocow support
Kent Overstreet [Fri, 18 Nov 2022 23:21:11 +0000 (18:21 -0500)]
Update bcachefs sources to 6406e05835 bcachefs: Nocow support

19 months agocmd_migrate: Fix for write completion change
Kent Overstreet [Wed, 16 Nov 2022 05:03:36 +0000 (00:03 -0500)]
cmd_migrate: Fix for write completion change

bch_write no longer delivers completions via op->cl - this patch changes
to use BCH_WRITE_SYNC.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
19 months agobcachefs-tools: add tarball make target
Eric Sandeen [Tue, 15 Nov 2022 19:51:39 +0000 (13:51 -0600)]
bcachefs-tools: add tarball make target

This makes it easy to generate a tarball, which should eventually
facilitate packaging:  "make tarball"

Note that it's currently using the $(VERSION) from git describe
which may not be ideal once point releases are happening, but that
holds true for everywhere $(VERSION) is used.

All tar.xz files are removed via "make clean"

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
19 months agobcachefs-tools: Prettify make output
Eric Sandeen [Tue, 15 Nov 2022 19:11:52 +0000 (13:11 -0600)]
bcachefs-tools: Prettify make output

Make the default "make" output look more like kbuild; this makes
errors and warnings much easier to spot. "Make V=1" will revert to
showing the full command lines.

This is done by redefining some implicit rules to add the echo and
the quiet variable.  These changes are similar to those in xfsprogs.
and btrfs-progs

This patch also silences things if pytest-3 is not found.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
19 months agocmd_kill_btree_node.c
Kent Overstreet [Mon, 14 Nov 2022 01:09:40 +0000 (20:09 -0500)]
cmd_kill_btree_node.c

This factors out cmd_kill_btree_node into its own file - it was in
cmd_list_journal.c, which wsa rather silly.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
19 months agoUpdate bcachefs sources to 8d3fc97ca3 bcachefs: Fixes for building in userspace
Kent Overstreet [Mon, 14 Nov 2022 01:04:21 +0000 (20:04 -0500)]
Update bcachefs sources to 8d3fc97ca3 bcachefs: Fixes for building in userspace

19 months agoUpdate bcachefs sources to 61ebcb532a bcachefs: Fix for allocating before backpointer...
Kent Overstreet [Mon, 24 Oct 2022 15:34:07 +0000 (11:34 -0400)]
Update bcachefs sources to 61ebcb532a bcachefs: Fix for allocating before backpointers have been checked

19 months agoUpdate bcachefs sources to 70fa0c1ff4 fixup! bcachefs: Btree key cache improvements
Kent Overstreet [Sun, 23 Oct 2022 21:39:22 +0000 (17:39 -0400)]
Update bcachefs sources to 70fa0c1ff4 fixup! bcachefs: Btree key cache improvements

19 months agoUpdate bcachefs sources to cd779e0cc5 bcachefs: Skip inode unpack/pack in bch2_extent...
Kent Overstreet [Sat, 22 Oct 2022 17:25:25 +0000 (13:25 -0400)]
Update bcachefs sources to cd779e0cc5 bcachefs: Skip inode unpack/pack in bch2_extent_update()

20 months agoUpdate bcachefs sources to 44be8c1da2 fixup! bcachefs: Btree key cache improvements
Kent Overstreet [Sat, 15 Oct 2022 09:29:10 +0000 (05:29 -0400)]
Update bcachefs sources to 44be8c1da2 fixup! bcachefs: Btree key cache improvements

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
20 months agoUpdate bcachefs sources to 3e93567c51 bcachefs: Switch to local_clock() for fastpath...
Kent Overstreet [Wed, 12 Oct 2022 20:29:56 +0000 (16:29 -0400)]
Update bcachefs sources to 3e93567c51 bcachefs: Switch to local_clock() for fastpath time source

20 months agoUpdate bcachefs sources to 6ee8a33cee bcachefs: Call bch2_btree_update_add_new_node...
Kent Overstreet [Wed, 12 Oct 2022 15:06:50 +0000 (11:06 -0400)]
Update bcachefs sources to 6ee8a33cee bcachefs: Call bch2_btree_update_add_new_node() before dropping write lock

20 months agoUpdate bcachefs sources to 83edfdeb29 bcachefs: Run check_extents_to_backpointers...
Kent Overstreet [Tue, 11 Oct 2022 11:43:08 +0000 (07:43 -0400)]
Update bcachefs sources to 83edfdeb29 bcachefs: Run check_extents_to_backpointers() in multiple passes

20 months agoUpdate bcachefs sources to 6dc2a699c6 bcachefs: bch2_path_put_nokeep()
Kent Overstreet [Tue, 11 Oct 2022 10:40:24 +0000 (06:40 -0400)]
Update bcachefs sources to 6dc2a699c6 bcachefs: bch2_path_put_nokeep()

20 months agofixup! Don't run shrinkers without GFP_KERNEL
Kent Overstreet [Tue, 11 Oct 2022 07:22:55 +0000 (03:22 -0400)]
fixup! Don't run shrinkers without GFP_KERNEL

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
20 months agoUpdate bcachefs sources to 55f0b5944b fixup! bcachefs: Run bch2_check_backpointers_to...
Kent Overstreet [Tue, 11 Oct 2022 05:21:38 +0000 (01:21 -0400)]
Update bcachefs sources to 55f0b5944b fixup! bcachefs: Run bch2_check_backpointers_to_extents() in multiple passes if necessary

20 months agoDon't run shrinkers without GFP_KERNEL
Kent Overstreet [Tue, 11 Oct 2022 04:39:06 +0000 (00:39 -0400)]
Don't run shrinkers without GFP_KERNEL

This would correspond to GFP_RECLAIM in the kernel - but we don't
distinguish between different types of reclaim here.

This solves a deadlock in the btree node memory allocation path - we
allocate with the btree node cache lock held but without GFP_KERNEL set.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
20 months agoUpdate bcachefs sources to 47ffed9fad bcachefs: bch2_btree_delete_range_trans() now...
Kent Overstreet [Mon, 10 Oct 2022 03:27:41 +0000 (23:27 -0400)]
Update bcachefs sources to 47ffed9fad bcachefs: bch2_btree_delete_range_trans() now uses peek_upto()

20 months agoUpdate bcachefs sources to cbccc6d869 bcachefs: Ratelimit ec error message
Kent Overstreet [Sun, 9 Oct 2022 06:32:57 +0000 (02:32 -0400)]
Update bcachefs sources to cbccc6d869 bcachefs: Ratelimit ec error message