Commit Graph

710 Commits

Author SHA1 Message Date
Kent Overstreet
58ae103b0a Update bcachefs sources to e3a7cee503 bcachefs: Don't mark superblocks past end of usable space 2021-06-08 22:55:14 -04:00
Justin Husted
f6d87e9a87 Work around build error with gcc <10
linux/six.c: In function ‘__six_lock_type_slowpath’:
linux/six.c:73:6: error: ‘old.<U81c8>.v’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

Signed-off-by: Justin Husted <sigstop@gmail.com>
2021-06-05 02:15:22 -07:00
Justin Husted
0335d55043 Re-enable FUSE smoke tests.
Signed-off-by: Justin Husted <sigstop@gmail.com>
2021-06-05 01:55:09 -07:00
Justin Husted
3da3c4ff8b Disable fuse remount test w/valgrind
This test fails with valgrind due to leaks currently.

Signed-off-by: Justin Husted <sigstop@gmail.com>
2021-06-05 01:51:43 -07:00
Justin Husted
17ceb87080 Implement iterator_put in fuse
bcachefs_fuse_setattr and inode_updates_times need to explicitly call
iter_put (the API changed a while back).

Signed-off-by: Justin Husted <sigstop@gmail.com>
2021-06-05 01:50:16 -07:00
Justin Husted
1cddbe95f9 Make fuse tests fail on emergency ro or iter leak
Signed-off-by: Justin Husted <sigstop@gmail.com>
2021-06-05 01:49:41 -07:00
Justin Husted
6b0e5ee29e Fix smoke_test to use BCACHEFS_DEBUG
This file was not updated when D -> BCACHEFS_DEBUG

Signed-off-by: Justin Husted <sigstop@gmail.com>
2021-06-05 01:48:53 -07:00
Justin Husted
560c4e4aea Disable fuse smoke tests
The FUSE support was broken a while back by an API change from the
kernel. Disable fuse tests until this change is implemented.

Signed-off-by: Justin Husted <sigstop@gmail.com>
2021-06-04 15:28:57 -07:00
Justin Husted
bf4e896460 Fix python test_list
The test arbitrarily checked some printed output which changed.

Signed-off-by: Justin Husted <sigstop@gmail.com>
2021-06-04 15:28:17 -07:00
Brett Holman
d937e485b6 add Valgrind suppression to ignore userspace-rcu leak 2021-06-04 16:12:13 -06:00
Kent Overstreet
b61ad35b97 Update bcachefs sources to 3913e0cac3 bcachefs: Journal space calculation fix 2021-05-31 15:05:33 -04:00
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