Commit Graph

83 Commits

Author SHA1 Message Date
Kent Overstreet
4158833a51 cmd_migrate: don't link data above i_size
The new filesystem might have a smaller blocksize than the old
blocksize, which trips this.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-12-19 20:35:24 -05:00
Kent Overstreet
411eb2575e cmd_migrate: fix memory leaks
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-12-19 19:43:30 -05:00
Kent Overstreet
5fa4e3da62 cmd_migrate: check for write errors
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-12-19 19:30:00 -05:00
Kent Overstreet
3233d8a0c4 cmd_migrate: fix write_data()
passing a parent closure is totally unnecessary when using
BCH_WRITE_SYNC - and pops an assert in debug mode, because the write
path no longer supports delivering completions that way.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-12-19 19:17:21 -05:00
Kent Overstreet
f76d246fff Update bcachefs sources to 1a739db0b256 bcachefs; guard against overflow in btree node split
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-12-18 23:21:21 -05:00
Kent Overstreet
469e8eb008 Avoiding picking different bucket sizes for different devices
Erasure coding can't create stripes across devices with different bucket
sizes - therefore, format shouldn't pick different bucket sizes for
different devices.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-11-06 20:47:48 -05:00
Hunter Shaffer
9f98746bfc 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>
2023-10-08 21:06:07 -04:00
Hunter Shaffer
b2ffa12074 deleted unused path to device in get_size, get_blocksize
Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
2023-10-08 21:06:07 -04:00
Kent Overstreet
a053ebfb8c Update bcachefs sources to f9c612bbf82d bcachefs: Fixes for building in userspace
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-09-23 20:03:23 -04:00
Kent Overstreet
5d507f795b Update bcachefs sources to da7d42a9a2 bcachefs: Add new assertions for shutdown path
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-07-09 15:25:40 -04:00
Kent Overstreet
b0c9ad15f4 Update bcachefs sources to 171da96d76 bcachefs: Drop some anonymous structs, unions 2023-03-04 23:33:25 -05:00
Kent Overstreet
1eae1d718c Use bch2_err_str() instead of strerror()
This correctly prints out our private error codes.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-12-19 16:05:54 -05:00
Kent Overstreet
e4716b10ed 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>
2022-11-16 00:03:36 -05:00
Kent Overstreet
188b6d0c8e Update bcachefs sources to cd779e0cc5 bcachefs: Skip inode unpack/pack in bch2_extent_update() 2022-10-22 14:41:54 -04:00
Kent Overstreet
46b2c553aa Update bcachefs sources to fad6d13aa5 fixup! bcachefs: Add persistent counters 2022-05-30 23:24:10 -04:00
Kent Overstreet
62839683e8 Update email address
This changes linux-bcache@vger.kernel.org references to the correct
mailing list (linux-bcachefs@vger.kernel.org).

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-26 15:40:08 -04:00
Kent Overstreet
8cc7d49281 cmd_unlock: Add -k argument to specify keyring
This adds a new argument (-k) to cmd_unlock for specifying the keyring
to add to. The default is user, but user_session and session can also be
specified.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-19 16:01:51 -04:00
Kent Overstreet
6f5afc0c12 Update bcachefs sources to bdf6d7c135 fixup! bcachefs: Kill journal buf bloom filter 2022-05-02 18:42:06 -04:00
Kent Overstreet
e240b4ae86 Update bcachefs sources to f638850417 bcachefs: bch2_trans_log_msg() 2022-03-30 17:40:37 -04:00
Kent Overstreet
de4e778a6a Update bcachefs sources to a0d7001b0f bcachefs: Change bch2_dev_lookup() to not use lookup_bdev() 2022-02-16 06:32:49 -05:00
Kent Overstreet
9c79275419 Update bcachefs sources to b84661c042 bcachefs: Fix reflink repair code 2022-02-11 18:33:16 -05:00
Kent Overstreet
c50379128b Update bcachefs sources to aa439f3b94 bcachefs: btree_gc no longer uses main in-memory bucket array 2022-01-01 21:22:41 -05:00
Kent Overstreet
ad03173172 Update bcachefs sources to aa540d47ab bcachefs: Option improvements 2021-12-25 18:48:46 -05:00
Kent Overstreet
11e4e302de Fix migrate tool for snapshots
This updates cmd_migrate.c for the snapshot field & subvolumes.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-12-20 15:49:32 -05:00
Kent Overstreet
39a6bf885d Update bcachefs sources to 6bb1ba5c94 bcachefs: Improve alloc_mem_to_key() 2021-12-11 17:26:14 -05:00
Kent Overstreet
99b12cd3a4 Update bcachefs sources to 50d6a25d9c bcachefs: Erasure coding fixes 2021-11-30 15:27:52 -05:00
Kent Overstreet
e61b61c03b Update bcachefs sources to 386f00b639 bcachefs: Snapshot creation, deletion 2021-09-26 19:50:47 -04:00
Kent Overstreet
8ba5e814fd Fix some small memory leaks
Found with -fsanitize=leak

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-16 17:28:40 -04:00
Kent Overstreet
bb6eccc2ec Increase default superblock size to 1MB
Also - add an option to bcachefs format for specifying it,
--superblock_size

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-24 22:40:25 -04:00
Kent Overstreet
9e5d774875 Update bcachefs sources to e2b8120595 bcachefs: Use x-macros for more enums 2021-02-20 22:34:09 -05:00
Kent Overstreet
f39f0bde78 Update bcachefs sources to fcf8a0889c bcachefs: bch2_alloc_write() should be writing for all devices 2021-01-08 21:33:27 -05:00
Kent Overstreet
d2a118d921 Update bcachefs sources to 1d669389f7 bcachefs: use a radix tree for inum bitmap in fsck 2020-11-07 13:09:23 -05:00
Kent Overstreet
8a440895bf Update bcachefs sources to 26c226917f bcachefs: Start/stop io clock hands in read/write paths 2020-10-17 18:17:36 -04:00
Kent Overstreet
82c7e8ff35 Update bcachefs sources to cfb41d25c7 bcachefs: Add an assertion to track down a heisenbug 2019-12-28 18:20:16 -05:00
Kent Overstreet
54fc3909b4 Update bcachefs sources to a8faf2472b bcachefs: Update directory timestamps during link 2019-12-18 15:30:16 -05:00
Kent Overstreet
62f5e4fa67 Update bcachefs sources to ce9293e9d0 bcachefs: Factor out fs-common.c 2019-10-04 16:26:48 -04:00
Kent Overstreet
e6e7d374e7 Update bcachefs sources to bfb7133d71 bcachefs: Refactor bch2_alloc_write() 2019-08-28 11:09:35 -04:00
Jonathan Carter
ed1c0e8c30 Fix typos 2019-08-21 10:19:25 +02:00
Kent Overstreet
f96ba8e0aa Update bcachefs sources to b91a514413 bcachefs: Don't try to delete stripes when RO 2019-07-11 12:00:51 -04:00
Kent Overstreet
b485aae1ba Update bcachefs sources to 6f603b8d79 bcachefs: some improvements to startup messages and options 2019-04-17 19:00:38 -04:00
Kent Overstreet
a4eb187a6f Update bcachefs sources to 75e8a078b8 bcachefs: improved flush_held_btree_writes() 2019-02-28 22:33:41 -05:00
Kent Overstreet
47bd483d27 Update bcachefs sources to ef60854e99 bcachefs: More allocator startup improvements 2019-01-13 20:53:25 -05:00
Kent Overstreet
0e9822571c Use opts.h for format options 2018-12-19 18:27:57 -05:00
Kent Overstreet
a10a41fa2b Update bcachefs sources to f7670cba39 bcachefs: Fix for building in userspace 2018-12-12 06:25:37 -05:00
Kent Overstreet
0c7db4eca3 Update bcachefs sources to 62de7539dc bcachefs: Make bkey types globally unique 2018-11-30 12:51:13 -05:00
Hadrien Copponnex
e69ff279fa Fixed xattr.h includes 2018-11-08 11:18:13 +01:00
Kent Overstreet
2ab2ab0f78 Update bcachefs sources to b12d1535f3 bcachefs: fix bounds checks in bch2_bio_map() 2018-11-03 20:19:25 -04:00
Kent Overstreet
55fbb25501 Update bcachefs sources to d7f6da1d60 bcachefs: fix missing include 2018-10-12 15:10:26 -04:00
Kent Overstreet
cef2f30ae2 Update bcachefs sources to 15f6e66e86 bcachefs: pass around bset_tree less 2018-08-15 20:00:21 -04:00
Kent Overstreet
76a549d82d Update bcachefs sources to eab3b355cf bcachefs: trace transaction restarts 2018-07-16 04:00:44 -04:00