Kent Overstreet
4a2acdaf65
Update closures from kernel source tree
2021-05-27 21:13:52 -04:00
Kent Overstreet
ea750088b0
Write a backup superblock at the end of the disk
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-05-27 21:12:17 -04:00
Kent Overstreet
27d75d929f
Grab math.h from kernel source tree
...
This gets us round_up() and round_down()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-05-27 21:12:13 -04:00
Stijn Tintel
617535ce85
bcachefs: add missing journal-resize to help text
...
The command exists already but was missing from the main help text.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-05-25 00:07:07 +03:00
Stijn Tintel
9852948bad
bcachefs: increase indentation in help text
...
This is in preparation of adding the resize-journal command to the main
help text, which would otherwise break the alignment.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-05-24 23:58:37 +03:00
Stijn Tintel
cec9ecc7e0
Makefile: rename D to BCACHEFS_DEBUG
...
BCACHEFS_DEBUG is far more descriptive. D also conflicts with the D
variable used in Gentoo ebuilds.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-05-24 23:34:38 +03:00
Kent Overstreet
09021c38d3
Update bcachefs sources to ac3ab6a511 bcachefs: Fix an uninitialized var
2021-05-20 20:47:55 -04:00
Brett Holman
9c0dc7b8d4
minor fixes for clang support
2021-05-19 23:26:13 -04:00
Kent Overstreet
2e2d5a3f7e
Update bcachefs sources to 0cd3e1d27a bcachefs: Fix for bch2_bkey_pack_pos() not initializing len/version fields
2021-05-17 16:48:48 -04:00
Kent Overstreet
8f72e6940c
Fix some minor compiler warnings
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-05-17 16:35:54 -04:00
Kent Overstreet
a76f36fc6e
Update bcachefs sources to ae6f512de8 bcachefs: Fix out of bounds read in fs usage ioctl
2021-05-15 14:43:26 -04:00
Kent Overstreet
bf14597460
Update bcachefs sources to b6d5426551 bcachefs: Fix bch2_btree_iter_peek_with_updates()
2021-05-14 14:58:07 -04:00
Kent Overstreet
7942d5cab4
Fix a missing free in dump_one_device()
...
Hopefully this will fix some OOMs
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-05-06 16:08:14 -04:00
Kent Overstreet
bb74624daa
Update bcachefs sources to a5c0e1bb30 bcachefs: Clean up bch2_btree_and_journal_walk()
2021-04-30 18:23:38 -04:00
Kent Overstreet
a14d39d7ac
bit_spinlocks now use futexes
...
Spinlocks aren't a good idea in userspace, where we can't actually
disable preemption.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-26 20:18:47 -04:00
Kent Overstreet
edc3ffe8f2
Update bcachefs sources to 8d3093bd9b bcachefs: Evict btree nodes we're deleting
2021-04-26 20:18:47 -04:00
Kent Overstreet
78905d7540
Change cmd_dump to use FSCK_OPT_NO
...
We just want cmd_dump to walk metadata, not fix errors - the mark and
sweep code is being fixed to make sure it continues on error.
2021-04-24 17:13:50 -04:00
Kent Overstreet
cb84ad03a5
cmd_list improvements
...
- update helptext
- add -l (level) parameter
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-24 16:55:06 -04:00
Kent Overstreet
f8c4bc591e
Update bcachefs sources to e6fa8eaa1b bcachefs: Fix bch2_verify_keylist_sorted
2021-04-24 12:11:47 -04:00
Kent Overstreet
f87850496e
Update bcachefs sources to 3c41353bc1 bcachefs: Fix bch2_verify_keylist_sorted
2021-04-24 01:37:09 -04:00
Kent Overstreet
30f72f75f5
Add a real mempool implementation
...
Imported from the kernel.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-24 01:36:43 -04:00
Kent Overstreet
ceac31bcb6
Update bcachefs sources to fe72e70682 bcachefs: Fix for btree_gc repairing interior btree ptrs
2021-04-19 21:26:48 -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
967c870498
Update bcachefs sources to 8eca47e4d5 bcachefs: Improved check_directory_structure()
2021-04-13 10:24:15 -04:00
Kent Overstreet
b422ff58ba
Update bcachefs sources to a8b3ce7599 fixup! bcachefs: Eliminate more PAGE_SIZE uses
2021-04-12 11:48:45 -04:00
Kent Overstreet
816ec60516
Add --force-if-data-lost to bcachefs device set-state
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-09 17:42:26 -04:00
Kent Overstreet
d340c4f4a8
Fix krealloc() alignment
...
bcachefs assumes kmalloc & krealloc give out allocations that are
naturally aligned, like the kernel allocators do.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-08 15:48:45 -04:00
Kent Overstreet
ce906d661e
Update bcachefs sources to 6a3927a96b fixup! bcachefs: Don't use write side of mark_lock in journal write path
2021-04-04 22:25:32 -04:00
Kent Overstreet
08e14f84d9
Add compatible feature bits to bch2_sb_print()
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-04 22:18:01 -04:00
Kent Overstreet
209695dedf
Update bcachefs sources to f26267fc82 bcachefs: kill bset_tree->max_key
2021-04-04 22:15:29 -04:00
Kent Overstreet
f46437f06e
bcaachefs device set-state can now work by id
2021-04-02 23:35:05 -04:00
Kent Overstreet
98844616f6
If we failed to read /proc/meminfo, just run the shrinkers.
2021-03-31 13:04:34 -04:00
Kent Overstreet
40e14938ee
Update bcachefs sources to 9922afc8b6 bcachefs: Add repair code for out of order keys in a btree node.
2021-03-29 00:22:49 -04:00
Kent Overstreet
a2094890a9
Update bcachefs sources to 18686af684 bcachefs: Inode backpointers
2021-03-29 00:22:38 -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
c88113e255
Update bcachefs sources to ad68801b93 bcachefs: Use pcpu mode of six locks for interior nodes
2021-03-24 22:13:00 -04:00
Kent Overstreet
9f69a652dc
Update bcachefs sources to c7defb5793 bcachefs: Split btree_iter_traverse and bch2_btree_iter_traverse()
2021-03-24 19:26:47 -04:00
Kent Overstreet
1f0d52aa06
Set features in format
...
This is a fixup for d3dc47271b
Add format options for --no-initialize
and specifying the metadata version
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-22 17:24:13 -04:00
Kent Overstreet
11098ae37a
Update bcachefs sources to 0a9f0fc68a bcachefs: Don't unconditially version_upgrade in initialize
2021-03-21 16:44:44 -04:00
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