]>
git.sesse.net Git - bcachefs-tools-debian/log
Alexander Fougner [Sun, 5 Nov 2023 00:07:01 +0000 (01:07 +0100)]
downgrade rust deps to compile for MSRV
- add helper for cargo update, whilst respecting MSRV
Signed-off-by: Alexander Fougner <fougner89@gmail.com>
Kent Overstreet [Fri, 3 Nov 2023 16:09:59 +0000 (12:09 -0400)]
Update bcachefs sources to
d464ec667b2b bcachefs: Add missing printk newlines
Kent Overstreet [Thu, 2 Nov 2023 20:44:59 +0000 (16:44 -0400)]
Update, slim down rust dependencies
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Thu, 2 Nov 2023 18:39:01 +0000 (14:39 -0400)]
Update bcachefs sources to
b9bd69421f73 bcachefs: x-macro-ify inode flags enum
Kent Overstreet [Fri, 27 Oct 2023 23:38:36 +0000 (19:38 -0400)]
Update bcachefs sources to
6628827a8707 bcachefs: Skip deleted members in member_to_text()
Kent Overstreet [Fri, 27 Oct 2023 20:43:11 +0000 (16:43 -0400)]
Update bcachefs sources to
7250b2ee5574 bcachefs: Fix deleted inodes btree in snapshot deletion
Kent Overstreet [Wed, 25 Oct 2023 06:09:44 +0000 (02:09 -0400)]
Update bcachefs sources to
0d63ed13ea3d closures: Fix race in closure_sync()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Fri, 20 Oct 2023 04:02:31 +0000 (00:02 -0400)]
Update bcachefs sources to
f70a3402188e bcachefs: Fix ca->oldest_gen allocation
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Fri, 20 Oct 2023 02:52:02 +0000 (22:52 -0400)]
Update bcachefs sources to
24bdb6fed91c bcachefs: bch2_btree_id_str()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Thu, 19 Oct 2023 01:57:11 +0000 (21:57 -0400)]
Update bcachefs sources to
a180af9dd349 bcachefs: Refactor memcpy into direct assignment
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Hunter Shaffer [Tue, 29 Aug 2023 22:05:09 +0000 (18:05 -0400)]
Change open_for_format to the block io api
Upcoming patch will add device benchmarking at format time, which needs
the bio API.
Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
Hunter Shaffer [Tue, 29 Aug 2023 21:32:55 +0000 (17:32 -0400)]
deleted unused path to device in get_size, get_blocksize
Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
Kent Overstreet [Sat, 7 Oct 2023 21:23:13 +0000 (17:23 -0400)]
Update bcachefs sources to
7bf1ac0d46 bcachefs: Correctly initialize new buckets on device resize
Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
Kent Overstreet [Fri, 29 Sep 2023 05:27:59 +0000 (01:27 -0400)]
Handle -EAGAIN from io_submit()
If io_submit() returns -EAGAIN, that just means the io context is full
and we need to wait for completions - no need to die.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Tue, 26 Sep 2023 21:12:51 +0000 (17:12 -0400)]
Update bcachefs sources to
a1b6677dca57 bcachefs: Fix looping around bch2_propagate_key_to_snapshot_leaves()
Kent Overstreet [Tue, 26 Sep 2023 17:29:49 +0000 (13:29 -0400)]
Update bcachefs sources to
1336a995cbc3 bcachefs: Silence transaction restart error message
Kent Overstreet [Tue, 26 Sep 2023 05:05:29 +0000 (01:05 -0400)]
Create symlinks on install with ln -sf
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Sat, 23 Sep 2023 22:42:30 +0000 (18:42 -0400)]
Update bcachefs sources to
f9c612bbf82d bcachefs: Fixes for building in userspace
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Fri, 22 Sep 2023 18:06:55 +0000 (14:06 -0400)]
Kill shell script wrappers
nixos has trouble with the shell script wrappers - readlink isn't
available by default!
But, there's a better approach: just get rid of them and use symlinks
instead, and have main() check what we're supposed to be.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Brian Foster [Tue, 19 Sep 2023 14:26:11 +0000 (10:26 -0400)]
bcachefs-tools: fix endian problems between bit spinlocks and futexes
bcachefs format on a big-endian (s390x) machine crashes down in the
rhashtable code imported from the kernel. The reason this occurs
lies within the rht_lock() -> bit_spin_lock() code, the latter of
which casts bitmaps down to 32-bits to satisfy the requirements of
the futex interface.
The specific problem here is that a 64 -> 32 bit cast doesn't refer
to the lower 8 bytes on a big endian machine, which means setting
bit number 0 in the 32-bit map actually corresponds to bit 32 in the
64-bit map. The rhashtable code specifically uses bit zero of the
bucket pointer for exclusion and uses native bitops elsewhere (i.e.
__rht_ptr()) to identify NULL pointers. If bit 32 of the pointer is
set by the locking code instead of bit 0, an otherwise NULL pointer
looks like a non-NULL value and results in a segfault.
The bit spinlock code imported by the kernel is originally intended
to work with unsigned long. The kernel code is able to throttle the
cpu directly when under lock contention, while the userspace
implementation relies on the futex primitives to emulate reliable
blocking. Since the futex interface introduces the 32-bit
requirement, isolate the associated userspace hack to that
particular code.
Restore the native bitmap behavior of the bit spinlock code to
address the rhashtable problem described above. Since this is not
compatible with the futex interface, create a futex wrapper
specifically to convert the native bitmap type to a 32-bit virtual
address and mask value for the purposes of waiting/waking when under
lock contention.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Brian Foster [Fri, 15 Sep 2023 13:40:25 +0000 (09:40 -0400)]
libbcachefs: convert sb features mask to little endian
bch_sb.features is an array of __le64. Convert the native endian format
of the features mask appropriately. This causes a bcachefs format to
produce an unmountable fs when run from a big endian system.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Colin Gillespie [Fri, 8 Sep 2023 07:27:52 +0000 (17:27 +1000)]
cmd_mount: request passphrase if the existing key is revoked
Signed-off-by: Colin Gillespie <colin@cgillespie.xyz>
Colin Gillespie [Fri, 8 Sep 2023 07:27:51 +0000 (17:27 +1000)]
cmd_set_passphrase: revoke the invalidated key
After setting a new passphrase, the previous key is left untouched. This
revokes the old key, preventing future actions from using it in error.
Signed-off-by: Colin Gillespie <colin@cgillespie.xyz>
Christopher James Halse Rogers [Fri, 1 Sep 2023 06:51:32 +0000 (16:51 +1000)]
cmd_mount: Fix test-only mount path
The comman line help claims that `bcachefs mount <DEV>` without a
mount point will do a dry-run mount - all the steps required to
mount the fs, but without actually doing the final real mount.
Make the code actually do this, rather than complain that you
haven't supplied a mountpoint if you don't provide a mountpoint
Signed-off-by: Christopher James Halse Rogers <raof@ubuntu.com>
Torge Matthies [Fri, 1 Sep 2023 15:51:31 +0000 (17:51 +0200)]
Fix one second delay when exiting
Signed-off-by: Torge Matthies <openglfreak@googlemail.com>
Kent Overstreet [Mon, 28 Aug 2023 19:20:58 +0000 (15:20 -0400)]
Update bcachefs sources to
e7f6215768 bcachefs: Fix snapshot_skiplist_good()
Kent Overstreet [Tue, 22 Aug 2023 19:45:35 +0000 (15:45 -0400)]
Fix null ptr deref in bbpos_parse()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Fri, 18 Aug 2023 04:07:51 +0000 (00:07 -0400)]
Update bcachefs sources to
bed61fae3b bcachefs: Delete a faulty assertion
Kent Overstreet [Thu, 17 Aug 2023 21:08:33 +0000 (17:08 -0400)]
Update bcachefs sources to
a8115093df bcachefs: Fix divide by zero in rebalance_work()
Colin Gillespie [Sat, 12 Aug 2023 03:50:37 +0000 (13:50 +1000)]
cmd_mount: use the correct keyring key type
Mount is checking for and adding encryption keys using the logon key
type instead of the user key type. This was causing it to not be able to
unlock volumes on its own, and ask for a passphrase on already unlocked
volumes.
Signed-off-by: Colin Gillespie <colin@cgillespie.xyz>
Kent Overstreet [Sat, 12 Aug 2023 02:22:59 +0000 (22:22 -0400)]
Update bcachefs sources to
b0788c47d9 bcachefs: Fix check_version_upgrade()
Kent Overstreet [Fri, 11 Aug 2023 22:17:07 +0000 (18:17 -0400)]
cmd_dump: Also set read_only
In nochanges mode, without read_only, we can go into a fake rw mode
where we allow writes but hold them in memory.
That's not what we want for the dump tool - this fixes a bug where btree
nodes don't always get dumped correctly.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Fri, 11 Aug 2023 22:16:14 +0000 (18:16 -0400)]
fuse: Set fsname correctly
Also, add helpers for the fuse.bcachefs filesystem type; this means we
can now test the fuse version with fstests.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Linus Heckemann [Thu, 10 Aug 2023 13:22:25 +0000 (15:22 +0200)]
cmd_mount: don't return 0 on mount failure
Signed-off-by: Linus Heckemann <git@sphalerite.org>
Kent Overstreet [Tue, 8 Aug 2023 21:42:16 +0000 (17:42 -0400)]
fuse: Update for snapshots
cmd_fusermount.c builds again
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Sat, 5 Aug 2023 22:06:22 +0000 (18:06 -0400)]
Update bcachefs sources to
717b356d1d bcachefs: Convert journal validation to bkey_invalid_flags
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Alexander Fougner [Fri, 21 Jul 2023 09:41:54 +0000 (11:41 +0200)]
ci: set and verify MSRV
To prevent uncontrolled usage of new rust features, directly or from
dependencies, set a minimum supported Rust version and verify it builds.
Signed-off-by: Alexander Fougner <fougner89@gmail.com>
Alexander Fougner [Thu, 22 Jun 2023 17:09:16 +0000 (19:09 +0200)]
Remove sparse protocol envvar
Default as of rust 1.70
Signed-off-by: Alexander Fougner <fougner89@gmail.com>
Kent Overstreet [Thu, 3 Aug 2023 21:19:48 +0000 (17:19 -0400)]
cmd_dump: Making dumping the entire journal the default
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Thu, 3 Aug 2023 17:26:22 +0000 (13:26 -0400)]
Update bcachefs sources to
5b8c4a1366 bcachefs: bcachefs_metadata_version_deleted_inodes
Kent Overstreet [Wed, 2 Aug 2023 00:18:33 +0000 (20:18 -0400)]
Update bcachefs sources to
33a60d9b05 bcachefs: Assorted fixes for clang
Kent Overstreet [Tue, 1 Aug 2023 20:57:52 +0000 (16:57 -0400)]
cmd_list_journal: Tweak extent matching
Extents can now additionally be matched by the end position, the same as
normal keys.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Tue, 1 Aug 2023 20:57:00 +0000 (16:57 -0400)]
bpos_parse() now handles symbol constants
We can now parse U32_MAX/U64_MAX, as printed by bch2_bpos_to_text().
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Fri, 21 Jul 2023 01:28:03 +0000 (21:28 -0400)]
Run shrinkers when pthread_create fails
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Thu, 20 Jul 2023 23:37:48 +0000 (19:37 -0400)]
Update bcachefs sources to
4b5917839c bcachefs: Fix a null ptr deref in check_xattr()
Kent Overstreet [Thu, 20 Jul 2023 22:11:51 +0000 (18:11 -0400)]
Fix 'bcachefs fsck -y'
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Thu, 20 Jul 2023 22:09:44 +0000 (18:09 -0400)]
Update bcachefs sources to
ee560a3929 bcachefs: Print version, options earlier in startup path
Alexander Fougner [Thu, 20 Jul 2023 19:35:47 +0000 (21:35 +0200)]
ci: upgrade to checkout action v3
v2 is deprecated
Signed-off-by: Alexander Fougner <fougner89@gmail.com>
Jörg Thalheim [Sun, 18 Jun 2023 12:23:28 +0000 (19:23 +0700)]
.gitignore: replace travis with github-ci config
Jörg Thalheim [Sun, 18 Jun 2023 12:22:57 +0000 (19:22 +0700)]
add dependabot config to keep github ci actions up-to-date
Jörg Thalheim [Sun, 18 Jun 2023 12:19:24 +0000 (19:19 +0700)]
ci: unpin nix install url
I don't think we no longer need this and the install-nix-action
is not compatible with it.
Jörg Thalheim [Sun, 18 Jun 2023 12:14:49 +0000 (19:14 +0700)]
ci: bump install-nix-action/cachix to fix nixos build
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
Kent Overstreet [Tue, 11 Jul 2023 00:31:34 +0000 (20:31 -0400)]
Update bcachefs sources to
e14d7c7195 bcachefs: Compression levels
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Demi Marie Obenour [Sat, 10 Jun 2023 20:43:31 +0000 (16:43 -0400)]
Add additional information about encryption
This adds additional details about how encryption works in
bcachefs, along with a warning regarding snapshots.
Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
Kent Overstreet [Mon, 10 Jul 2023 19:57:09 +0000 (15:57 -0400)]
Update bcachefs sources to
04f2d2ae5b bcachefs: Fix build error on weird gcc
Kent Overstreet [Mon, 10 Jul 2023 18:17:18 +0000 (14:17 -0400)]
Update bcachefs sources to
070ec8d07b bcachefs: Snapshot depth, skiplist fields
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Mon, 10 Jul 2023 16:23:51 +0000 (12:23 -0400)]
Update bcachefs sources to
fb39031ade bcachefs: bch2_sb_maybe_downgrade(), bch2_sb_upgrade()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Mon, 10 Jul 2023 05:44:55 +0000 (01:44 -0400)]
Update bcachefs sources to
1e3ca87f7b bcachefs: bcachefs_metadata_version_major_minor
Kent Overstreet [Sun, 9 Jul 2023 19:16:50 +0000 (15:16 -0400)]
Update bcachefs sources to
da7d42a9a2 bcachefs: Add new assertions for shutdown path
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Fri, 7 Jul 2023 08:24:54 +0000 (04:24 -0400)]
Update bcachefs sources to
25de2b00dc bcachefs: Change check for invalid key types
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Tue, 27 Jun 2023 23:45:40 +0000 (19:45 -0400)]
get_random_u32_below()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Sat, 24 Jun 2023 16:50:52 +0000 (12:50 -0400)]
Update bcachefs sources to
84f132d569 bcachefs: fsck: Break walk_inode() up into multiple functions
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Sun, 18 Jun 2023 20:20:01 +0000 (16:20 -0400)]
Update bcachefs sources to
bca25b802d fixup! bcachefs: Fix bch2_check_discard_freespace_key()
Kent Overstreet [Sun, 18 Jun 2023 17:50:30 +0000 (13:50 -0400)]
Update bcachefs sources to
99175e5712 bcachefs: Fix bch2_check_discard_freespace_key()
Kent Overstreet [Sun, 18 Jun 2023 18:31:59 +0000 (14:31 -0400)]
Switch to CLOCK_MONOTONIC_COARSE
CLOCK_MONOTONIC requires a syscall, and is much more expensive.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Jörg Thalheim [Fri, 16 Jun 2023 11:57:35 +0000 (13:57 +0200)]
build.nix: add instruction to keep cargoDeps hashes up-to-date
Jörg Thalheim [Fri, 16 Jun 2023 06:17:00 +0000 (08:17 +0200)]
nix: replace deprecated cargo/rustc aliases with new version
Jörg Thalheim [Fri, 16 Jun 2023 06:14:10 +0000 (08:14 +0200)]
flake.lock: Update
This is needed so that nix-update can update cargo dependencies.
Flake lock file updates:
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/
b1f87ca164a9684404c8829b851c3586c4d9f089 ' (2023-02-25)
→ 'github:nixos/nixpkgs/
0eeebd64de89e4163f4d3cf34ffe925a5cf67a05 ' (2023-06-12)
• Updated input 'utils':
'github:numtide/flake-utils/
3db36a8b464d0c4532ba1c7dda728f4576d6d073 ' (2023-02-13)
→ 'github:numtide/flake-utils/
a1720a10a6cfe8234c0e93907ffe81be440f4cef ' (2023-05-31)
• Added input 'utils/systems':
'github:nix-systems/default/
da67096a3b9bf56a91d16901293e51ba5b49a27e ' (2023-04-09)
Jörg Thalheim [Thu, 15 Jun 2023 17:08:41 +0000 (19:08 +0200)]
fix reading keys from non-tty inputs
read_password_from_tty doesn't have a fallback if input is a pipe.
This makes scripting and integration testing harder.
Noticed while updating our nixos integration test.
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
Jörg Thalheim [Thu, 15 Jun 2023 17:05:45 +0000 (19:05 +0200)]
flake.nix: add missing bindgen output hash
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
Kent Overstreet [Tue, 13 Jun 2023 19:06:46 +0000 (15:06 -0400)]
Update bcachefs sources to
01d7ad6d95 bcachefs: snapshot_to_text() includes snapshot tree
Kent Overstreet [Sun, 11 Jun 2023 02:13:01 +0000 (22:13 -0400)]
Update bcachefs sources to
ed6b7f81a7 six locks: Disable percpu read lock mode in userspace
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Sun, 11 Jun 2023 00:59:22 +0000 (20:59 -0400)]
cmd_fs_usage: Implement --help
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Bernhard M. Wiedemann [Thu, 8 Jun 2023 13:07:48 +0000 (15:07 +0200)]
Sort input file list
so that libbcachefs.so builds in a reproducible way
in spite of non-deterministic filesystem readdir order.
See https://reproducible-builds.org/ for why this is good.
Kent Overstreet [Sun, 4 Jun 2023 22:10:23 +0000 (18:10 -0400)]
Update bcachefs sources to
7c0fe6f104 bcachefs: Fix bch2_fsck_ask_yn()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Thu, 25 May 2023 21:52:28 +0000 (17:52 -0400)]
Update bcachefs sources to
31c09369cd six locks: Fix an unitialized var
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Fri, 19 May 2023 13:50:11 +0000 (09:50 -0400)]
Update bcachefs sources to
799716df00 bcachefs: Delete an incorrect bch2_trans_unlock()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Sat, 13 May 2023 04:13:57 +0000 (00:13 -0400)]
Update bcachefs sources to
400f275d46 bcachefs: Fix check_overlapping_extents()
Kent Overstreet [Mon, 8 May 2023 08:20:52 +0000 (04:20 -0400)]
Update bcachefs sources to
5074caad6a fixup! bcachefs: BTREE_ID_snapshot_tree
Kent Overstreet [Mon, 8 May 2023 00:01:55 +0000 (20:01 -0400)]
Update bcachefs sources to
e990c131de fixup! bcachefs: BTREE_ID_snapshot_tree
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Wed, 26 Apr 2023 20:34:57 +0000 (16:34 -0400)]
Update bcachefs sources to
6a20aede29 bcachefs: Fix quotas + snapshots
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
TruongSinh Tran-Nguyen [Thu, 27 Apr 2023 18:02:00 +0000 (11:02 -0700)]
chore(rust): add opt_get! and expose some FMODE_* as Rust const
In an effort to rewrite `bch2_read_super` from C to Rust,
it is neccessary to have `opt_get!` macro defined, and some
FMODE_* consts (defined as macro in `include/linux/blkdev.h`)
defined as Rust const.
Bindgen is currently unable to exapnd C functional macro [1],
this this commit use the workaround as introduced in [2].
[1] https://github.com/rust-lang/rust-bindgen/issues/753
[2] https://github.com/rust-lang/rust-bindgen/issues/753#issuecomment-
608546390
Signed-off-by: TruongSinh Tran-Nguyen <i@truongsinh.pro>
TruongSinh Tran-Nguyen [Wed, 26 Apr 2023 17:15:12 +0000 (10:15 -0700)]
feat(cmd_mount): Add support for magic keyword `OLD_BLKID_UUID`
This commit enhances mount sub command by allowing it to accept
`OLD_BLKID_UUID=xxx` as the device, enabling whole fs mounting without relying
on colon-separated devices.
Using colon-separated devices in fstab is discouraged due to potential device
reference issues after reboot. Additionally, using `UUID=xxx` in fstab or with
`mount -t bcachefs` is currently infeasible as it depends on blkid, which prior
to v2.39, does not recognize bcachefs. This update enables mounting via fstab
using `OLD_BLKID_UUID=xxx` as obtained from `bcachefs show-super` "External
UUID".
Signed-off-by: TruongSinh Tran-Nguyen <i@truongsinh.pro>
TruongSinh Tran-Nguyen [Wed, 26 Apr 2023 19:50:16 +0000 (12:50 -0700)]
chore: logger for idiomatic style and expanded logging levels
Improve the Rust logger by adhering to idiomatic Rust conventions and
incorporating additional logging levels: warn, debug, and trace.
Signed-off-by: TruongSinh Tran-Nguyen <i@truongsinh.pro>
Mikulas Patocka [Wed, 26 Apr 2023 12:31:10 +0000 (08:31 -0400)]
A small compile fix
Hi
Here I'm sending a small compile fix for bcachefs-tools.
Without this patch, I get this error:
cargo build --release --manifest-path rust-src/Cargo.toml
Compiling bch_bindgen v0.1.0
(/usr/src/git/bcachefs-tools/rust-src/bch_bindgen)
error: failed to run custom build command for `bch_bindgen v0.1.0
(/usr/src/git/bcachefs-tools/rust-src/bch_bindgen)`
Caused by:
process didn't exit successfully:
`/usr/src/git/bcachefs-tools/rust-src/target/release/build/bch_bindgen-
733e88995ce9eab7 /build-script-build`
(exit status: 101)
--- stderr
warning: optimization flag '-fkeep-inline-functions' is not supported
[-Wignored-optimization-argument]
../../include/linux/bit_spinlock.h:20:3: error: call to undeclared
function 'futex'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
../../include/linux/bit_spinlock.h:28:2: error: call to undeclared
function 'futex'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
../../include/linux/bit_spinlock.h:39:2: error: call to undeclared
function 'futex'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
The futex() function is declared in
/usr/include/x86_64-linux-gnu/urcu/futex.h
It is not declared in linux/futex.h, so we need to include urcu/futex.h
Mikulas
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Tue, 25 Apr 2023 18:35:51 +0000 (14:35 -0400)]
Update bcachefs sources to
fd6fb298aa bcachefs: Make sure hash info gets initialized in fsck
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Fri, 21 Apr 2023 08:02:48 +0000 (04:02 -0400)]
Update bcachefs sources to
2115a2ffde bcachefs: Kill bch2_verify_bucket_evacuated()
Kent Overstreet [Thu, 20 Apr 2023 16:35:27 +0000 (12:35 -0400)]
Add a NO_RUST option
For systems without working rust/llvm/bindgen, add an option for
building without Rust. This will be less of an option in the future, as
more code gets rewritten in Rust.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Kent Overstreet [Thu, 20 Apr 2023 16:18:25 +0000 (12:18 -0400)]
Delete pytest
These tests have never been useful; drop them.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Kent Overstreet [Mon, 17 Apr 2023 01:50:37 +0000 (21:50 -0400)]
Update bcachefs sources to
fd381c355c bcachefs: Fix a null ptr deref in fsck check_extents()
Kent Overstreet [Sun, 16 Apr 2023 11:14:41 +0000 (07:14 -0400)]
Update bcachefs sources to
22ccceee15 bcachefs: Fix a slab-out-of-bounds
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>
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>
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>
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>
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
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()
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>
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>
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>