Commit Graph

862 Commits

Author SHA1 Message Date
Kent Overstreet
74148a8ee5 Update bcachefs sources to 0e705f5944 fixup! bcachefs: Refactor bch2_btree_node_mem_alloc() 2022-03-21 02:13:02 -04:00
Kent Overstreet
e76dbf1abd cmd_debug: Add -j for dumping entire journal
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-20 02:39:38 -04:00
Kent Overstreet
3765483ff0 Update bcachefs sources to f05b3c1af9 bcachefs: Improve bucket_alloc_fail tracepoint 2022-03-13 19:21:13 -04:00
Kent Overstreet
d34e731082 Update bcachefs sources to e48731a188 bcachefs: Fix BTREE_TRIGGER_WANTS_OLD_AND_NEW 2022-03-13 19:20:59 -04:00
Kent Overstreet
bf7924f552 Add freezable_schedule() to linux kernel shim
Also fix the freezable_schedule_timeout() macro.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-10 15:38:02 -05:00
Kent Overstreet
8c60ee37e7 Make filesystem initialization verbose
Initializing the freespace btree may take some time, so let's make that
visible.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-10 15:37:27 -05:00
Kent Overstreet
3e2e3d468e Update bcachefs sources to e318fabeb4 bcachefs: Fix pr_tab_rjust() 2022-03-06 14:07:16 -05:00
Kent Overstreet
b797b087a9 Update bcachefs sources to 259ff91605 bcachefs: Don't keep around btree_paths unnecessarily 2022-03-05 17:06:24 -05:00
Kent Overstreet
4568914cfb Update bcachefs sources to b64d9b7b19 bcachefs: Don't arm journal->write_work when journal entry !open 2022-03-05 13:46:11 -05:00
Kent Overstreet
1ffc9b4554 Update bcachefs sources to f67089dc9b bcachefs: Convert bch2_sb_to_text to master option list 2022-03-05 12:09:12 -05:00
Kent Overstreet
465e90314c cmd_list_journal: Indicate which journal entries are blacklisted
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-02 15:25:57 -05:00
Kent Overstreet
87f685d129 Update bcachefs sources to 8ffb42b3d0 bcachefs: Finish writing journal after journal error 2022-03-01 15:45:36 -05:00
Kent Overstreet
fd1b84975b Update bcachefs sources to ffad51ba45 bcachefs: Fix a use after free 2022-02-27 16:35:20 -05:00
Kent Overstreet
03498f9464 Update bcachefs sources to 04036b4910 bcachefs: Fix a memory leak 2022-02-27 12:01:32 -05:00
Aleksei Kharlamov
b1a2ab6eef Heap-allocate printbufs
Signed-off-by: Aleksei Kharlamov <aleksei@devass.club>
2022-02-26 21:31:27 +01:00
Aleksei Kharlamov
63805882d4 Update bcachefs sources to 31718a2: bcachefs: Don't spin in journal reclaim
Signed-off-by: Aleksei Kharlamov <aleksei@devass.club>
2022-02-26 21:31:11 +01:00
Kent Overstreet
5528e3ae62 Update bcachefs sources to 9b3aa5ec6c bcachefs: Add tabstops to printbufs 2022-02-22 04:56:09 -05:00
Kent Overstreet
c06026ac54 Update bcachefs sources to 9d554fa16d bcachefs: Add .to_text() methods for all superblock sections 2022-02-21 05:38:44 -05:00
Kent Overstreet
f850624092 list_journal: tell recovery to only read the journal
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-19 05:18:08 -05:00
Kent Overstreet
6a935c784a Update bcachefs sources to 7d0925084b bcachefs: opts.read_journal_only 2022-02-19 05:16:30 -05:00
Kent Overstreet
0dc018fe08 list_journal: Improve formatting
log journal entries denote the start of a transaction commit - let's
indent them differently

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-19 04:12:15 -05:00
Kent Overstreet
a5cf18ffd4 list_journal: also print where entries were written
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-19 01:31:37 -05:00
Kent Overstreet
8d1c88c30d Update bcachefs sources to da8056a215 bcachefs: Store logical location of journal entries 2022-02-19 01:31:29 -05:00
Kent Overstreet
cc1a99fb74 Switch to pthread_mutex_t for spinlocks, too
This fixes an observed journal deadlock - real spinlocks aren't safe in
userspace.
2022-02-18 05:58:24 -05:00
Kent Overstreet
a1e928af83 Update bcachefs sources to cea583fa17 bcachefs: Only mark iterators nopreserve that aren't in use 2022-02-16 07:22:40 -05:00
Kent Overstreet
803d749d86 Use printbuf_indent_push
This properly indents multi-line printbuf output

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-16 06:45:04 -05: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
a1d66a2a4e Update bcachefs sources to ba398d2906 bcachefs: Fix reflink repair code 2022-02-13 04:08:33 -05:00
Kent Overstreet
9c79275419 Update bcachefs sources to b84661c042 bcachefs: Fix reflink repair code 2022-02-11 18:33:16 -05:00
Wessel Dankers
7b15324de1
Fix heap corruption in bcachefs format
In bch2_format(): recompute mi after each sb modification:
its location in memory may have changed due to reallocation.

This fixes an issue where labels were not assigned (because
they were written to an undefined part of the heap instead of
the superblock).

Signed-off-by: Wessel Dankers <wsl@fruit.je>
2022-01-13 00:08:52 +01:00
Daniel B. Hill
2c0d0c4b7b Makefile: We need to exclude hidden folders
Sometimes user-specific apps create .c files in hidden folders breaking make.

Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
2022-01-12 17:31:04 +13:00
Kent Overstreet
74a7c3ff57 Update bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating fragmentation 2022-01-10 21:41:51 -05:00
Kent Overstreet
b3984515eb Fix makefile for building docs
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-01-10 21:38:14 -05:00
Kent Overstreet
47c554c31a Update bcachefs sources to 5242db9aec bcachefs: Fix bch2_check_fix_ptrs() 2022-01-05 19:39:57 -05:00
Kent Overstreet
931ed5a709 Update bcachefs sources to 50ac18afbb bcachefs: Fix an uninitialized variable 2022-01-04 19:56:40 -05:00
Kent Overstreet
69529e3136 Update bcachefs sources to 90d824456e bcachefs: Improve path for when btree_gc needs another pass 2022-01-02 18:40:44 -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
8a632ea60d Update bcachefs sources to 42284b8b2b bcachefs: Fix race between btree updates & journal replay 2022-01-01 21:14:28 -05:00
Kent Overstreet
a5bd96ff58 Improve the list_journal subcommand
This updates list_journal to use the new bch2_journal_entry_to_text()
pretty-printer.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-01-01 21:14:28 -05:00
Kent Overstreet
d08291637f Update bcachefs sources to 9d28e4a535 bcachefs: bch2_journal_entry_to_text() 2022-01-01 21:14:28 -05:00
Kent Overstreet
12fe5797ad Update bcachefs sources to 916d92b6b4 bcachefs: Add error messages for memory allocation failures 2022-01-01 21:14:28 -05:00
Kent Overstreet
617dc6dd68 Retry memory allocation failures
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-01-01 21:14:28 -05:00
Daniel B. Hill
a6390a8012 fix labels not applying
Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
2022-01-01 21:14:28 -05:00
Kent Overstreet
9cc3b7debb Unit handling cleanups
The option code has been switching to keeping things in display units -
bytes - and this transitions more libbcachefs.c code to bytes as well,
to match, and also fixes device add.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-01-01 21:14:22 -05:00
Kent Overstreet
38f8daa2b1 Update bcachefs sources to 078a1a596a bcachefs: Optimize bucket reuse 2021-12-28 15:03:54 -05:00
Igor Velkov
be490d2732 Update manpage to follow --label and --compression updates 2021-12-28 21:19:19 +02:00
Kent Overstreet
07b18011cc Update bcachefs sources to f9d2e809a8 bcachefs: Turn encoded_extent_max into a regular option 2021-12-25 18:48:46 -05:00
Kent Overstreet
ad03173172 Update bcachefs sources to aa540d47ab bcachefs: Option improvements 2021-12-25 18:48:46 -05:00
Kent Overstreet
00f49f23b4 Update bcachefs sources to d3422f9b18 bcachefs: Journal initialization fixes 2021-12-21 21:53:07 -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