]> git.sesse.net Git - bcachefs-tools-debian/log
bcachefs-tools-debian
2 years agoFix man for device set-state command
Igor Velkov [Sat, 16 Apr 2022 21:38:50 +0000 (00:38 +0300)]
Fix man for device set-state command

Signed-off-by: Igor Velkov <iav@iav.lv>
2 years agolist_journal: Add -n for number of entries to print
Kent Overstreet [Tue, 12 Apr 2022 20:38:10 +0000 (16:38 -0400)]
list_journal: Add -n for number of entries to print

The entire journal can be too big to fit in memory in textual form,
making grep difficult: this adds an option to print a specific number of
journal entries.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to 4c2d3669b1 bcachefs: In fsck, pass BTREE_UPDATE_INTERNAL_S...
Kent Overstreet [Tue, 12 Apr 2022 17:15:53 +0000 (13:15 -0400)]
Update bcachefs sources to 4c2d3669b1 bcachefs: In fsck, pass BTREE_UPDATE_INTERNAL_SNAPSHOT_NODE when deleting dirents

2 years agoUpdate bcachefs sources to 7a06c01fa3 bcachefs: Fix for getting stuck in journal...
Kent Overstreet [Tue, 12 Apr 2022 16:52:50 +0000 (12:52 -0400)]
Update bcachefs sources to 7a06c01fa3 bcachefs: Fix for getting stuck in journal replay

2 years agoUpdate bcachefs sources to de2fbf8b87 fixup! bcachefs: Change journal_io.c assertion...
Kent Overstreet [Tue, 12 Apr 2022 03:03:41 +0000 (23:03 -0400)]
Update bcachefs sources to de2fbf8b87 fixup! bcachefs: Change journal_io.c assertion to error message

2 years agoUpdate bcachefs sources to fb8a27f6d4 bcachefs: Delete a redundant tracepoint
Kent Overstreet [Tue, 12 Apr 2022 02:40:16 +0000 (22:40 -0400)]
Update bcachefs sources to fb8a27f6d4 bcachefs: Delete a redundant tracepoint

2 years agoUpdate bcachefs sources to e67d924a90 bcachefs: Introduce bch2_journal_keys_peek_...
Kent Overstreet [Tue, 12 Apr 2022 00:32:28 +0000 (20:32 -0400)]
Update bcachefs sources to e67d924a90 bcachefs: Introduce bch2_journal_keys_peek_(upto|slot)()

2 years agoUpdate bcachefs sources to 2d5e6ec144 fixup! bcachefs: Ensure buckets have io_time...
Kent Overstreet [Mon, 11 Apr 2022 02:29:14 +0000 (22:29 -0400)]
Update bcachefs sources to 2d5e6ec144 fixup! bcachefs: Ensure buckets have io_time[READ] set

2 years agoUpdate bcachefs sources to 202b20c48f bcachefs: Ensure buckets have io_time[READ...
Kent Overstreet [Mon, 11 Apr 2022 00:02:24 +0000 (20:02 -0400)]
Update bcachefs sources to 202b20c48f bcachefs: Ensure buckets have io_time[READ] set

2 years agoUpdate bcachefs sources to 1e6618c45d bcachefs: Improve bch2_open_buckets_to_text()
Kent Overstreet [Sun, 10 Apr 2022 22:07:55 +0000 (18:07 -0400)]
Update bcachefs sources to 1e6618c45d bcachefs: Improve bch2_open_buckets_to_text()

2 years agoUpdate bcachefs sources to 1ff261b014 bcachefs: Fix CPU usage in journal read path
Kent Overstreet [Sun, 10 Apr 2022 20:29:14 +0000 (16:29 -0400)]
Update bcachefs sources to 1ff261b014 bcachefs: Fix CPU usage in journal read path

2 years agoUpdate bcachefs sources to ad72553649 bcachefs: Fix a null ptr deref
Kent Overstreet [Sun, 10 Apr 2022 18:41:57 +0000 (14:41 -0400)]
Update bcachefs sources to ad72553649 bcachefs: Fix a null ptr deref

2 years agoUpdate bcachefs sources to ac53c8857f fixup! bcachefs: Use a genradix for reading...
Kent Overstreet [Sat, 9 Apr 2022 18:02:54 +0000 (14:02 -0400)]
Update bcachefs sources to ac53c8857f fixup! bcachefs: Use a genradix for reading journal entries

2 years agoUpdate bcachefs sources to 6ddf061e68 bcachefs: Use a genradix for reading journal...
Kent Overstreet [Fri, 8 Apr 2022 23:19:05 +0000 (19:19 -0400)]
Update bcachefs sources to 6ddf061e68 bcachefs: Use a genradix for reading journal entries

2 years agoUpdate bcachefs sources to d3da360412 bcachefs: Fold bucket_state in to BCH_DATA_TYPES()
Kent Overstreet [Fri, 8 Apr 2022 00:56:27 +0000 (20:56 -0400)]
Update bcachefs sources to d3da360412 bcachefs: Fold bucket_state in to BCH_DATA_TYPES()

2 years agoNew tool for killing btree nodes on a filesystem
Kent Overstreet [Thu, 7 Apr 2022 23:25:30 +0000 (19:25 -0400)]
New tool for killing btree nodes on a filesystem

To be used by error injection tests.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to 98a1bff393 bcachefs: Topology repair fixes
Kent Overstreet [Thu, 7 Apr 2022 21:52:51 +0000 (17:52 -0400)]
Update bcachefs sources to 98a1bff393 bcachefs: Topology repair fixes

2 years agoUpdate bcachefs sources to d2e0889128 bcachefs: fsck: Work around transaction restarts
Kent Overstreet [Wed, 6 Apr 2022 18:43:08 +0000 (14:43 -0400)]
Update bcachefs sources to d2e0889128 bcachefs: fsck: Work around transaction restarts

2 years agoUpdate bcachefs sources to 07bac0c685 bcachefs: fsck: Work around transaction restarts
Kent Overstreet [Wed, 6 Apr 2022 18:42:00 +0000 (14:42 -0400)]
Update bcachefs sources to 07bac0c685 bcachefs: fsck: Work around transaction restarts

2 years agoUpdate bcachefs sources to e027cf9aa0 fixup! bcachefs: Defer checking of alloc -...
Kent Overstreet [Wed, 6 Apr 2022 18:13:15 +0000 (14:13 -0400)]
Update bcachefs sources to e027cf9aa0 fixup! bcachefs: Defer checking of alloc -> lru refs until after RW

2 years agoUpdate bcachefs sources to 91e6c3e0d5 bcachefs: Gap buffer for journal keys
Kent Overstreet [Mon, 4 Apr 2022 17:48:45 +0000 (13:48 -0400)]
Update bcachefs sources to 91e6c3e0d5 bcachefs: Gap buffer for journal keys

2 years agoUpdate bcachefs sources to ab3b6e7dd6 bcachefs: Fix pr_buf() calls
Kent Overstreet [Sat, 2 Apr 2022 20:36:29 +0000 (16:36 -0400)]
Update bcachefs sources to ab3b6e7dd6 bcachefs: Fix pr_buf() calls

2 years agoUpdate bcachefs sources to 5e392aed7a bcachefs: Kill bch2_alloc_write()
Kent Overstreet [Thu, 31 Mar 2022 20:57:08 +0000 (16:57 -0400)]
Update bcachefs sources to 5e392aed7a bcachefs: Kill bch2_alloc_write()

2 years agoFlush standard output before popping assertions
Kent Overstreet [Thu, 31 Mar 2022 03:20:39 +0000 (23:20 -0400)]
Flush standard output before popping assertions

Seeing error messages before we die generally makes assertions easier to
debug.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agocmd_list_journal: Tweak for new log entries
Kent Overstreet [Thu, 31 Mar 2022 00:31:28 +0000 (20:31 -0400)]
cmd_list_journal: Tweak for new log entries

We use entry->level to denote which log entries indicate the start of a
transaction - this updates cmd_list_journal to format them correctly.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to f638850417 bcachefs: bch2_trans_log_msg()
Kent Overstreet [Wed, 30 Mar 2022 21:40:25 +0000 (17:40 -0400)]
Update bcachefs sources to f638850417 bcachefs: bch2_trans_log_msg()

2 years agocmd_list_journal: Make output more readable
Kent Overstreet [Tue, 29 Mar 2022 19:07:28 +0000 (15:07 -0400)]
cmd_list_journal: Make output more readable

This puts a blank line before log entries, which are used to denote the
start of a transaction commit.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoMerge remote-tracking branch 'holmanb/holmanb/suppressions'
Kent Overstreet [Mon, 28 Mar 2022 23:24:10 +0000 (19:24 -0400)]
Merge remote-tracking branch 'holmanb/holmanb/suppressions'

2 years agoMerge remote-tracking branch 'holmanb/holmanb/keyutils-dep-check'
Kent Overstreet [Mon, 28 Mar 2022 23:23:09 +0000 (19:23 -0400)]
Merge remote-tracking branch 'holmanb/holmanb/keyutils-dep-check'

2 years agoUpdate bcachefs sources to 7786034caa bcachefs: Fix for freespace version upgrade...
Kent Overstreet [Mon, 28 Mar 2022 22:44:48 +0000 (18:44 -0400)]
Update bcachefs sources to 7786034caa bcachefs: Fix for freespace version upgrade path

2 years agoUpdate bcachefs sources to bba7493dda bcachefs: Fix error path in bch2_snapshot_set_e...
Kent Overstreet [Mon, 28 Mar 2022 20:32:53 +0000 (16:32 -0400)]
Update bcachefs sources to bba7493dda bcachefs: Fix error path in bch2_snapshot_set_equiv()

2 years agoHeap code fix
Kent Overstreet [Mon, 28 Mar 2022 16:39:12 +0000 (12:39 -0400)]
Heap code fix

When deleting an entry from a heap that was at entry h->used - 1, we'd
end up calling heap_sift() on an entry outside the heap - the entry we
just removed - which would end up re-adding it to the heap and deleting
something we didn't want to delete. Oops...

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoAdd valgrind suppressions:
Brett Holman [Thu, 24 Mar 2022 01:36:03 +0000 (19:36 -0600)]
Add valgrind suppressions:

- urcu
- rebalance thread

2 years agocheck for libkeyutils with pkg-config
Brett Holman [Thu, 24 Mar 2022 17:11:58 +0000 (11:11 -0600)]
check for libkeyutils with pkg-config

2 years agocmd_format: verbose no longer on by default
Kent Overstreet [Tue, 22 Mar 2022 05:50:14 +0000 (01:50 -0400)]
cmd_format: verbose no longer on by default

Instead, we now have a -v option

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agofix example
Brett Holman [Tue, 22 Mar 2022 17:59:36 +0000 (11:59 -0600)]
fix example

2 years agoShrinker improvements
Kent Overstreet [Tue, 22 Mar 2022 00:20:09 +0000 (20:20 -0400)]
Shrinker improvements

After memory allocation failure, don't rely on /proc/meminfo to figure
out how much memory we should free - instead unconditionally free 1/8th
of each cache.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoBetter bio_alloc_bioset()
Kent Overstreet [Mon, 21 Mar 2022 21:59:13 +0000 (17:59 -0400)]
Better bio_alloc_bioset()

bio_alloc_bioset() now uses mempools, so we don't segfault on memory
allocation failure.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to 367a8fad45 bcachefs: Reset journal flush delay to default...
Kent Overstreet [Mon, 21 Mar 2022 07:06:23 +0000 (03:06 -0400)]
Update bcachefs sources to 367a8fad45 bcachefs: Reset journal flush delay to default value if zeroed

2 years agoUpdate bcachefs sources to 0e705f5944 fixup! bcachefs: Refactor bch2_btree_node_mem_a...
Kent Overstreet [Mon, 21 Mar 2022 06:10:28 +0000 (02:10 -0400)]
Update bcachefs sources to 0e705f5944 fixup! bcachefs: Refactor bch2_btree_node_mem_alloc()

2 years agocmd_debug: Add -j for dumping entire journal
Kent Overstreet [Sun, 20 Mar 2022 06:38:55 +0000 (02:38 -0400)]
cmd_debug: Add -j for dumping entire journal

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to f05b3c1af9 bcachefs: Improve bucket_alloc_fail tracepoint
Kent Overstreet [Sun, 13 Mar 2022 23:21:13 +0000 (19:21 -0400)]
Update bcachefs sources to f05b3c1af9 bcachefs: Improve bucket_alloc_fail tracepoint

2 years agoUpdate bcachefs sources to e48731a188 bcachefs: Fix BTREE_TRIGGER_WANTS_OLD_AND_NEW
Kent Overstreet [Sun, 13 Mar 2022 23:14:01 +0000 (19:14 -0400)]
Update bcachefs sources to e48731a188 bcachefs: Fix BTREE_TRIGGER_WANTS_OLD_AND_NEW

2 years agoAdd freezable_schedule() to linux kernel shim
Kent Overstreet [Thu, 10 Mar 2022 20:38:02 +0000 (15:38 -0500)]
Add freezable_schedule() to linux kernel shim

Also fix the freezable_schedule_timeout() macro.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoMake filesystem initialization verbose
Kent Overstreet [Thu, 10 Mar 2022 20:37:27 +0000 (15:37 -0500)]
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>
2 years agoUpdate bcachefs sources to e318fabeb4 bcachefs: Fix pr_tab_rjust()
Kent Overstreet [Sun, 6 Mar 2022 19:07:16 +0000 (14:07 -0500)]
Update bcachefs sources to e318fabeb4 bcachefs: Fix pr_tab_rjust()

2 years agoUpdate bcachefs sources to 259ff91605 bcachefs: Don't keep around btree_paths unneces...
Kent Overstreet [Sat, 5 Mar 2022 22:06:24 +0000 (17:06 -0500)]
Update bcachefs sources to 259ff91605 bcachefs: Don't keep around btree_paths unnecessarily

2 years agoUpdate bcachefs sources to b64d9b7b19 bcachefs: Don't arm journal->write_work when...
Kent Overstreet [Sat, 5 Mar 2022 18:46:11 +0000 (13:46 -0500)]
Update bcachefs sources to b64d9b7b19 bcachefs: Don't arm journal->write_work when journal entry !open

2 years agoUpdate bcachefs sources to f67089dc9b bcachefs: Convert bch2_sb_to_text to master...
Kent Overstreet [Sat, 5 Mar 2022 17:09:12 +0000 (12:09 -0500)]
Update bcachefs sources to f67089dc9b bcachefs: Convert bch2_sb_to_text to master option list

2 years agocmd_list_journal: Indicate which journal entries are blacklisted
Kent Overstreet [Tue, 1 Mar 2022 19:21:20 +0000 (14:21 -0500)]
cmd_list_journal: Indicate which journal entries are blacklisted

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to 8ffb42b3d0 bcachefs: Finish writing journal after journal...
Kent Overstreet [Tue, 1 Mar 2022 20:45:36 +0000 (15:45 -0500)]
Update bcachefs sources to 8ffb42b3d0 bcachefs: Finish writing journal after journal error

2 years agoUpdate bcachefs sources to ffad51ba45 bcachefs: Fix a use after free
Kent Overstreet [Sun, 27 Feb 2022 21:35:20 +0000 (16:35 -0500)]
Update bcachefs sources to ffad51ba45 bcachefs: Fix a use after free

2 years agoUpdate bcachefs sources to 04036b4910 bcachefs: Fix a memory leak
Kent Overstreet [Sun, 27 Feb 2022 17:01:32 +0000 (12:01 -0500)]
Update bcachefs sources to 04036b4910 bcachefs: Fix a memory leak

2 years agoHeap-allocate printbufs
Aleksei Kharlamov [Sat, 26 Feb 2022 17:06:02 +0000 (18:06 +0100)]
Heap-allocate printbufs

Signed-off-by: Aleksei Kharlamov <aleksei@devass.club>
2 years agoUpdate bcachefs sources to 31718a2: bcachefs: Don't spin in journal reclaim
Aleksei Kharlamov [Sat, 26 Feb 2022 17:05:28 +0000 (18:05 +0100)]
Update bcachefs sources to 31718a2: bcachefs: Don't spin in journal reclaim

Signed-off-by: Aleksei Kharlamov <aleksei@devass.club>
2 years agoUpdate bcachefs sources to 9b3aa5ec6c bcachefs: Add tabstops to printbufs
Kent Overstreet [Tue, 22 Feb 2022 09:55:39 +0000 (04:55 -0500)]
Update bcachefs sources to 9b3aa5ec6c bcachefs: Add tabstops to printbufs

2 years agoUpdate bcachefs sources to 9d554fa16d bcachefs: Add .to_text() methods for all superb...
Kent Overstreet [Mon, 21 Feb 2022 10:38:44 +0000 (05:38 -0500)]
Update bcachefs sources to 9d554fa16d bcachefs: Add .to_text() methods for all superblock sections

2 years agolist_journal: tell recovery to only read the journal
Kent Overstreet [Sat, 19 Feb 2022 10:18:08 +0000 (05:18 -0500)]
list_journal: tell recovery to only read the journal

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to 7d0925084b bcachefs: opts.read_journal_only
Kent Overstreet [Sat, 19 Feb 2022 10:16:30 +0000 (05:16 -0500)]
Update bcachefs sources to 7d0925084b bcachefs: opts.read_journal_only

2 years agolist_journal: Improve formatting
Kent Overstreet [Sat, 19 Feb 2022 09:12:15 +0000 (04:12 -0500)]
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>
2 years agolist_journal: also print where entries were written
Kent Overstreet [Sat, 19 Feb 2022 06:31:37 +0000 (01:31 -0500)]
list_journal: also print where entries were written

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to da8056a215 bcachefs: Store logical location of journal...
Kent Overstreet [Sat, 19 Feb 2022 06:31:29 +0000 (01:31 -0500)]
Update bcachefs sources to da8056a215 bcachefs: Store logical location of journal entries

2 years agoSwitch to pthread_mutex_t for spinlocks, too
Kent Overstreet [Fri, 18 Feb 2022 10:58:24 +0000 (05:58 -0500)]
Switch to pthread_mutex_t for spinlocks, too

This fixes an observed journal deadlock - real spinlocks aren't safe in
userspace.

2 years agoUpdate bcachefs sources to cea583fa17 bcachefs: Only mark iterators nopreserve that...
Kent Overstreet [Wed, 16 Feb 2022 12:22:40 +0000 (07:22 -0500)]
Update bcachefs sources to cea583fa17 bcachefs: Only mark iterators nopreserve that aren't in use

2 years agoUse printbuf_indent_push
Kent Overstreet [Wed, 16 Feb 2022 11:31:13 +0000 (06:31 -0500)]
Use printbuf_indent_push

This properly indents multi-line printbuf output

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to a0d7001b0f bcachefs: Change bch2_dev_lookup() to not use...
Kent Overstreet [Wed, 16 Feb 2022 11:31:28 +0000 (06:31 -0500)]
Update bcachefs sources to a0d7001b0f bcachefs: Change bch2_dev_lookup() to not use lookup_bdev()

2 years agoUpdate bcachefs sources to ba398d2906 bcachefs: Fix reflink repair code
Kent Overstreet [Sun, 13 Feb 2022 09:07:30 +0000 (04:07 -0500)]
Update bcachefs sources to ba398d2906 bcachefs: Fix reflink repair code

2 years agoUpdate bcachefs sources to b84661c042 bcachefs: Fix reflink repair code
Kent Overstreet [Thu, 10 Feb 2022 08:42:28 +0000 (03:42 -0500)]
Update bcachefs sources to b84661c042 bcachefs: Fix reflink repair code

2 years agoFix heap corruption in bcachefs format
Wessel Dankers [Wed, 12 Jan 2022 16:26:14 +0000 (17:26 +0100)]
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>
2 years agoMakefile: We need to exclude hidden folders
Daniel B. Hill [Tue, 11 Jan 2022 13:14:41 +0000 (02:14 +1300)]
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>
2 years agoUpdate bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating...
Kent Overstreet [Tue, 11 Jan 2022 02:41:51 +0000 (21:41 -0500)]
Update bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating fragmentation

2 years agoFix makefile for building docs
Kent Overstreet [Mon, 10 Jan 2022 22:22:28 +0000 (17:22 -0500)]
Fix makefile for building docs

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to 5242db9aec bcachefs: Fix bch2_check_fix_ptrs()
Kent Overstreet [Thu, 6 Jan 2022 00:39:57 +0000 (19:39 -0500)]
Update bcachefs sources to 5242db9aec bcachefs: Fix bch2_check_fix_ptrs()

2 years agoUpdate bcachefs sources to 50ac18afbb bcachefs: Fix an uninitialized variable
Kent Overstreet [Tue, 4 Jan 2022 04:43:03 +0000 (23:43 -0500)]
Update bcachefs sources to 50ac18afbb bcachefs: Fix an uninitialized variable

2 years agoUpdate bcachefs sources to 90d824456e bcachefs: Improve path for when btree_gc needs...
Kent Overstreet [Sun, 2 Jan 2022 23:40:44 +0000 (18:40 -0500)]
Update bcachefs sources to 90d824456e bcachefs: Improve path for when btree_gc needs another pass

2 years agoUpdate bcachefs sources to aa439f3b94 bcachefs: btree_gc no longer uses main in-memor...
Kent Overstreet [Sun, 2 Jan 2022 02:22:24 +0000 (21:22 -0500)]
Update bcachefs sources to aa439f3b94 bcachefs: btree_gc no longer uses main in-memory bucket array

2 years agoUpdate bcachefs sources to 42284b8b2b bcachefs: Fix race between btree updates &...
Kent Overstreet [Fri, 31 Dec 2021 23:03:19 +0000 (18:03 -0500)]
Update bcachefs sources to 42284b8b2b bcachefs: Fix race between btree updates & journal replay

2 years agoImprove the list_journal subcommand
Kent Overstreet [Fri, 31 Dec 2021 22:24:06 +0000 (17:24 -0500)]
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>
2 years agoUpdate bcachefs sources to 9d28e4a535 bcachefs: bch2_journal_entry_to_text()
Kent Overstreet [Fri, 31 Dec 2021 22:23:40 +0000 (17:23 -0500)]
Update bcachefs sources to 9d28e4a535 bcachefs: bch2_journal_entry_to_text()

2 years agoUpdate bcachefs sources to 916d92b6b4 bcachefs: Add error messages for memory allocat...
Kent Overstreet [Fri, 31 Dec 2021 02:23:06 +0000 (21:23 -0500)]
Update bcachefs sources to 916d92b6b4 bcachefs: Add error messages for memory allocation failures

2 years agoRetry memory allocation failures
Kent Overstreet [Fri, 31 Dec 2021 01:26:09 +0000 (20:26 -0500)]
Retry memory allocation failures

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agofix labels not applying
Daniel B. Hill [Wed, 29 Dec 2021 00:32:47 +0000 (13:32 +1300)]
fix labels not applying

Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
2 years agoUnit handling cleanups
Kent Overstreet [Tue, 28 Dec 2021 21:47:44 +0000 (16:47 -0500)]
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>
2 years agoUpdate bcachefs sources to 078a1a596a bcachefs: Optimize bucket reuse
Kent Overstreet [Tue, 28 Dec 2021 19:30:25 +0000 (14:30 -0500)]
Update bcachefs sources to 078a1a596a bcachefs: Optimize bucket reuse

2 years agoUpdate manpage to follow --label and --compression updates
Igor Velkov [Tue, 28 Dec 2021 19:19:19 +0000 (21:19 +0200)]
Update manpage to follow --label and --compression updates

2 years agoUpdate bcachefs sources to f9d2e809a8 bcachefs: Turn encoded_extent_max into a regula...
Kent Overstreet [Wed, 22 Dec 2021 04:42:46 +0000 (23:42 -0500)]
Update bcachefs sources to f9d2e809a8 bcachefs: Turn encoded_extent_max into a regular option

2 years agoUpdate bcachefs sources to aa540d47ab bcachefs: Option improvements
Kent Overstreet [Wed, 22 Dec 2021 04:13:52 +0000 (23:13 -0500)]
Update bcachefs sources to aa540d47ab bcachefs: Option improvements

2 years agoUpdate bcachefs sources to d3422f9b18 bcachefs: Journal initialization fixes
Kent Overstreet [Wed, 22 Dec 2021 02:53:07 +0000 (21:53 -0500)]
Update bcachefs sources to d3422f9b18 bcachefs: Journal initialization fixes

2 years agoFix migrate tool for snapshots
Kent Overstreet [Mon, 20 Dec 2021 20:49:32 +0000 (15:49 -0500)]
Fix migrate tool for snapshots

This updates cmd_migrate.c for the snapshot field & subvolumes.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoDelete old bcachefs.5 from makefile
Kent Overstreet [Mon, 20 Dec 2021 20:24:22 +0000 (15:24 -0500)]
Delete old bcachefs.5 from makefile

2 years agofix init_layout()
Kent Overstreet [Mon, 20 Dec 2021 02:55:09 +0000 (21:55 -0500)]
fix init_layout()

It was incorrectly failing when we did have enough space for the
superblocks - >= should have been >.  Also, give it a better error
message.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to ff3a76e1af bcachefs: Change need_whiteout_for_snapshot...
Kent Overstreet [Mon, 20 Dec 2021 00:37:29 +0000 (19:37 -0500)]
Update bcachefs sources to ff3a76e1af bcachefs: Change need_whiteout_for_snapshot() to clone iterator

2 years agoUpdate bcachefs sources to 635ca475f4 bcachefs: Fix debug build in userspace
Kent Overstreet [Tue, 14 Dec 2021 21:15:21 +0000 (16:15 -0500)]
Update bcachefs sources to 635ca475f4 bcachefs: Fix debug build in userspace

2 years agoRename group to label in show-super output
Kent Overstreet [Mon, 13 Dec 2021 22:14:44 +0000 (17:14 -0500)]
Rename group to label in show-super output

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to 6bb1ba5c94 bcachefs: Improve alloc_mem_to_key()
Kent Overstreet [Sat, 11 Dec 2021 22:25:34 +0000 (17:25 -0500)]
Update bcachefs sources to 6bb1ba5c94 bcachefs: Improve alloc_mem_to_key()

2 years agoFix device add for kernel sysfs changes
Kent Overstreet [Fri, 10 Dec 2021 19:07:31 +0000 (14:07 -0500)]
Fix device add for kernel sysfs changes

Also slightly improve some error messages

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoRename --group to --label
Kent Overstreet [Fri, 10 Dec 2021 18:32:35 +0000 (13:32 -0500)]
Rename --group to --label

Disk labels used to be called groups - not all uses had been converted.
This renames --group to --label, and --label to --fs_label

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2 years agoUpdate bcachefs sources to 50d6a25d9c bcachefs: Erasure coding fixes
Kent Overstreet [Tue, 30 Nov 2021 20:27:31 +0000 (15:27 -0500)]
Update bcachefs sources to 50d6a25d9c bcachefs: Erasure coding fixes

2 years agoUpdate bcachefs sources to 4c24a1cf56 bcachefs: Fix BCH_FS_ERROR flag handling
Kent Overstreet [Sun, 21 Nov 2021 21:26:39 +0000 (16:26 -0500)]
Update bcachefs sources to 4c24a1cf56 bcachefs: Fix BCH_FS_ERROR flag handling

2 years agoUpdate bcachefs sources to 2152e671d8 bcachefs: Add a bit of missing repair code
Kent Overstreet [Sun, 21 Nov 2021 19:55:54 +0000 (14:55 -0500)]
Update bcachefs sources to 2152e671d8 bcachefs: Add a bit of missing repair code