Commit Graph

725 Commits

Author SHA1 Message Date
Kent Overstreet
700d013b52 Update bcachefs sources to 400c2f8d96 bcachefs: Mask out unknown compat features when going read-write 2021-07-11 13:57:11 -04:00
Brett Holman
8e6f35cbf3 Documentation fixup: made filenames more descriptive, switched parsing utility to python 2021-07-10 13:51:03 -04:00
Kent Overstreet
050d5f7bcf Update bcachefs sources to 3693b2ca83 fixup! bcachefs: More topology repair code 2021-07-08 12:14:49 -04:00
Kent Overstreet
a471a75449 Add bcachefs.5 to .gitignore
It's autogenerated now

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-07-07 20:32:00 -04:00
Kent Overstreet
347c0b108e Update bcachefs sources to dbee44d5ab bcachefs: add bcachefs xxhash support 2021-07-07 20:30:53 -04:00
jpsollie
54d44fe56b add bcachefs xor / xxhash support
Following the initial xxhash / xor checksum support patches in kernel, bcachefs-tools needs some updated libraries as well.
Unfortunately, xor functionality is deeply linked into several low-level functions, so we're adding a set of patches here to translate those into userspace

Signed-off-by: Janpieter Sollie <janpieter.sollie@edpnet.be>
2021-07-07 20:30:39 -04:00
Kent Overstreet
8e07f30cd7 Fix some makefile misspellings
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-07-06 13:41:31 -04:00
Brett Holman
b916af97dd Switched documentation from asciidoc to rst, added doc autogeneration code for options 2021-07-06 00:15:44 -06:00
Kent Overstreet
07ec713e05 Update bcachefs sources to 1a510b00b6 bcachefs: Increase BTREE_TRANS_MEM_MAX 2021-07-04 23:33:54 -04:00
Kent Overstreet
55142cd0b5 Update bcachefs sources to ca3cfad39f fixup! bcachefs: Improve iter->should_be_locked 2021-06-23 15:53:37 -04:00
Kent Overstreet
fe1bb39aa5 Fix format args to die()
Also, add the format attribute so we get warnings about this.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-06-14 20:28:26 -04:00
jpsollie
d228e43048 Cleanup Makefile for better compatibility + enable "make debug"
- clean up Makefile to improve compiler compatibility
- add a "Make debug" target for easier debug builds
- update INSTALL
- fix six.c when running "make debug" against GCC 9 (maybe-uninitialized)

Signed-off by: Janpieter Sollie <janpieter.sollie@edpnet.be>
2021-06-13 01:14:47 -04:00
jpsollie
0fbe294a96 Improve compiler compatibility + run blkid remove for all filesystems
add a blk_wipe function to remove any possible filesystems left on the block device
this makes sure the automounter does not accidentally mount it as another filesystem.

Signed-off by: Janpieter Sollie <janpieter.sollie@edpnet.be>
2021-06-13 01:09:56 -04:00
Kent Overstreet
2be79b428b Update bcachefs sources to b00cf89c56 bcachefs: Allow shorter JSET_ENTRY_dev_usage entries 2021-06-12 17:21:01 -04:00
Kent Overstreet
ff578c6718 Update bcachefs sources to 69be0dae31 bcachefs: Always zero memory from bch2_trans_kmalloc() 2021-06-10 20:25:55 -04:00
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