Commit Graph

660 Commits

Author SHA1 Message Date
Kent Overstreet
d3dc47271b Add format options for --no-initialize and specifying the metadata version
These are only to be used for tests.
2021-03-21 16:21:51 -04:00
Kent Overstreet
8a69e01aeb Add the version_min field to cmd_show_super
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-21 15:59:21 -04:00
Kent Overstreet
cc92b0f5a2 New data job command
This adds a new subcommand, bcachefs data job, that gives more direct
access to the data job/ioctl functionality, and hooks up the new rewrite
old nodes data job.
2021-03-16 21:46:21 -04:00
Kent Overstreet
aa0ddf3cf9 Update bcachefs sources to 242d37cbd0 bcachefs: Kill btree_iter_pos_changed() 2021-03-16 21:46:18 -04:00
Kent Overstreet
e7c4380a89 Update bcachefs sources to 63924135a1 bcachefs: Have fsck check for stripe pointers matching stripe 2021-03-12 16:56:43 -05:00
Kent Overstreet
fb2d506f6f Don't die in kthread_create()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-02-24 00:41:09 -05: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
b64369c59f Update bcachefs sources to 9b77e72c47 bcachefs: Extents may now cross btree node boundaries 2021-02-20 03:28:11 -05:00
Kent Overstreet
d51534ee27 Update bcachefs sources to dfb7dc100d bcachefs: Drop invalid stripe ptrs in fsck 2021-02-19 16:20:44 -05:00
koverstreet
fc072054a9
Merge pull request #43 from jpsollie/koverstreet_version
Add metadata_target functionality
2021-02-17 14:30:00 -05:00
jpsollie
38a93ad6b2
Merge pull request #16 from koverstreet/master
update
2021-02-16 13:59:58 +01:00
Kent Overstreet
a437f5fc84 Update bcachefs sources to 199bfbed8a lib/generic-radix-tree.c: Don't overflow in peek() 2021-02-12 21:43:09 -05:00
Kent Overstreet
c28f93bc52 generix radix trees: Don't overflow in peek() 2021-02-12 21:42:46 -05:00
Kent Overstreet
868abec1ab Update bcachefs sources to 5e73602f6c bcachefs: Fix for fsck hanging 2021-02-12 16:02:52 -05:00
jpsollie
3c7db5cec4 Add metadata_target functionality
While metadata_target was an option in bcachefs and the fs driver knows about it,
it was never parsed by the bcachefs format command.
This commit fixes the issue
2021-02-12 07:14:36 +01:00
Kent Overstreet
612f6b9ab7 Update bcachefs sources to 79847e4824 bcachefs: Fixes/improvements for journal entry reservations 2021-02-03 15:26:03 -05:00
Kent Overstreet
4064aa126e Update bcachefs sources to 26409a8f75 bcachefs: Journal updates to dev usage 2021-02-02 16:07:59 -05:00
Kent Overstreet
7eef5f46dd Update bcachefs sources to ea3414eed5 fixup! bcachefs: Improve diagnostics when journal entries are missing 2021-01-29 15:33:24 -05:00
Kent Overstreet
7740db24f7 Update bcachefs sources to bee34d805c bcachefs: Repair bad data pointers 2021-01-28 16:16:51 -05:00
Kent Overstreet
19f921604d Update bcachefs sources to ffc900d593 fixup! bcachefs: Mark superblocks transactionally 2021-01-26 21:00:48 -05:00
Kent Overstreet
0e05fa6dfe Add device index to show-super 2021-01-26 20:48:58 -05:00
Kent Overstreet
9fce394ca6 Update bcachefs sources to 313b24b652 bcachefs: Fix an assertion 2021-01-25 19:05:19 -05:00
Kent Overstreet
4a4a7e01d7 Ensure fields don't collide in bcachefs fs usage
Also, make them a bit bigger.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-01-15 16:43:16 -05:00
Kent Overstreet
f476c4d128 Update bcachefs sources to 7d57e9b703 bcachefs: Run jset_validate in write path as well 2021-01-15 15:24:04 -05:00
Kent Overstreet
02002f3774 Update bcachefs sources to bb2281735c bcachefs: Factor out bch2_ec_stripes_heap_start() 2021-01-15 14:30:01 -05:00
Kent Overstreet
4aed137c42 Update bcachefs sources to 93347f7162 bcachefs: Add btree node prefetching to bch2_btree_and_journal_walk() 2021-01-12 16:44:34 -05:00
Kent Overstreet
c1dcd67f7d Don't use mlockall()
We're hitting -ENOMEM while running fsck - we appear to need memory
overcommit, which mlockall() disables.
2021-01-12 16:36:45 -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
41dc1733f1 Fix bcachefs device remove --by-id
That's not how you parse an integer in C...

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-01-05 15:02:10 -05:00
Kent Overstreet
80846e9c28 Update bcachefs sources to 5241335413 bcachefs: Fix for spinning in journal reclaim on startup 2020-12-19 18:05:09 -05:00
Kent Overstreet
db931a4571 Update bcachefs sources to e1d0fb8c5f bcachefs: Don't require flush/fua on every journal write 2020-12-04 13:45:33 -05:00
Kent Overstreet
d7fdc2b61e Ensure we always print a message if fsck doesnt't return 0 2020-12-03 19:15:37 -05:00
Kent Overstreet
dd707c9bfd Update bcachefs sources to 0010403265 bcachefs: Fix spurious alloc errors on forced shutdown 2020-12-03 13:13:53 -05:00
Kent Overstreet
1e574cb1aa Update bcachefs sources to 021e62a098 bcachefs: Fix error in filesystem initialization 2020-11-30 00:06:46 -05:00
Kent Overstreet
41bec63b26 Add a subcommand for resizing the journal
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-11-17 10:52:39 -05:00
Kent Overstreet
9225f81a49 Update bcachefs sources to b1107114ca bcachefs: Add an ioctl for resizing journal on a device 2020-11-17 10:52:20 -05:00
Kent Overstreet
13f53aa228 Update bcachefs sources to d1fd471830 bcachefs: Add more debug checks 2020-11-16 18:23:54 -05:00
Kent Overstreet
3420d86959 Round up aligned_alloc() allocations
this fixes an address sanitizer splat

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-11-16 18:23:47 -05:00
Kent Overstreet
4915b450e2 Improve some log messages 2020-11-13 16:45:21 -05:00
Kent Overstreet
4df03a2ead Fix kmalloc_array macro
This was causing us some valgrind errors.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-11-08 15:23:13 -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
742dbbdbb9 Update bcachefs sources to 8436db7aac bcachefs: Drop alloc keys from journal when -o reconstruct_alloc 2020-10-24 21:21:56 -04:00
Kent Overstreet
96f4a81a01 Update bcachefs sources to 13bb4cdf89 bcachefs: Indirect inline data extents 2020-10-24 21:01:26 -04:00
Kent Overstreet
37270fc79c Update bcachefs sources to ff83eed5f5 bcachefs: Fix bch2_mark_stripe() 2020-10-23 18:43:51 -04: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
eff87a4c44 Build with -Wno-zero_length_bounds
Copying the linux kernel build settings
2020-10-15 22:54:22 -04:00
Kent Overstreet
7df1badafb Update bcachefs sources to 0568ed4886 bcachefs: Fix copygc dying on startup 2020-10-15 22:53:27 -04:00
Kent Overstreet
487ddeb03c Add a shell script version of mount.bcachefs
Sadly, some people are still running distributions too old to properly
support rust :( In the long term we'd like to use Rust for more of
userspace (and potentially in the kernel); this is just a stopgap
measure.
2020-08-24 23:17:17 -04:00
koverstreet
da730dc67c
Merge pull request #38 from jnsaff/patch-1
Fixes tests which have broken since 'list' improvements
2020-08-24 17:07:57 -04:00
Kent Overstreet
9b3a770ae3 make D=1 now implies valgrind
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-08-24 16:27:42 -04:00