Commit Graph

752 Commits

Author SHA1 Message Date
Brett Holman
385dcecb96 Update valgrind suppressions file for urcu leak.
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-12 20:22:45 -06:00
Brett Holman
08420d2481 Fix errors related to rst2man warning message:
- Warning message doesn't print and causes build to exit.
- .SHELLSTATUS doesn't work on some versions of Make.

Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-12 00:37:02 -04:00
Brett Holman
60a6b2882e Clean up smoketest and pytests.
- Replace depreciated tempfile with mktemp in smoketest.
- Remove unused pytest imports and variables.
- Make path lookup less fragile. Allows pytest to run from any cwd.
- Prevent exeptions caused by calling functions/methods on None objects.
- Disable fuse tests in smoketest. These are broken and add noise.
- Add missing travis CI dependency.

Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-11 20:24:12 -06:00
Brett Holman
ba1dbafc1f Fall back to synchronous io when kernel doesn't support aio.
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-10 15:23:57 -06:00
Kent Overstreet
2225e9a372 Correctly print out error from io_setup()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-10-09 16:20:28 -04:00
Kayla Fire
3f7b0b0832 pytest: remove arbitrary assertion 2021-10-05 11:44:57 -04:00
Kent Overstreet
37850436dd Update bcachefs sources to 4114ced1db bcachefs: Fix allocator shutdown error message 2021-10-01 10:10:55 -04:00
Kent Overstreet
beb0846724 Print better error message when shrinking is attempted
Shrinking's not supported yet.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-09-30 17:15:29 -04:00
Kent Overstreet
ba69a1b1c4 Update bcachefs sources to 0762d9c294 bcachefs: Fix check_inode_update_hardlinks() 2021-09-30 11:10:49 -04:00
Kent Overstreet
49ba8d0ef6 Update bcachefs sources to 6c5219caf0 bcachefs: Rev the on disk format version for snapshots 2021-09-27 13:32:44 -04:00
Kent Overstreet
d214908864 Subvolume commands 2021-09-26 19:50:47 -04:00
Kent Overstreet
e61b61c03b Update bcachefs sources to 386f00b639 bcachefs: Snapshot creation, deletion 2021-09-26 19:50:47 -04:00
Brett Holman
9942fc82d4 Make aio code use struct io_iocb_common to support 32 bit architectures
Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-09-22 17:58:09 -04:00
Kent Overstreet
08802949e2 Update bcachefs sources to bd6ed9fb42 fixup! bcachefs: Fix initialization of bch_write_op.nonce 2021-09-21 20:49:08 -04:00
Kent Overstreet
2b8c1bb091 Update bcachefs sources to 3f3f969859 bcachefs: Fix some compiler warnings 2021-09-09 19:10:07 -04:00
Kent Overstreet
6c42566c62 Update bcachefs sources to 60fbf06f49 bcachefs: Fix an unhandled transaction restart 2021-08-05 13:11:04 -04:00
Kent Overstreet
ac82bc1ea5 Delete unused variable
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-07-28 17:27:25 -04:00
Kent Overstreet
f06b01e9ea Update bcachefs sources to b964c6cba8 bcachefs: Change lockrestart_do() to always call bch2_trans_begin() 2021-07-28 17:26:50 -04:00
Brett Holman
308d7adcc5 fix for musl and non-x86 archs 2021-07-24 20:16:41 -04:00
jpsollie
cb09c48a26 fixup! rst2man detection hangs
rst2man tend to hang when called without arguments, so a small -V is appended to print the version.
Also, make sure we found at least one rst2man executable

Signed-off-by: jpsollie <janpieter.sollie@edpnet.be>
2021-07-24 17:10:10 -04:00
jpsollie
d6415ce25b add a blk_wipe function call
Remove any possible filesystems left on the block device when formatting
this makes sure the automounter does not accidentally mount it as another filesystem.
one of the functionalities possibly wiped by accodent?

Signed-off-by: jpsollie <janpieter.sollie@edpnet.be>
2021-07-24 17:10:10 -04:00
jpsollie
0b0b0ee234 Reapply compiler checks
The compiler checks where erroneously reverted in the Makefile - this reapplies them,
so GCC < 10 can still build the bcachefs tools

Signed-off-by: jpsollie <janpieter.sollie@edpnet.be>
2021-07-24 17:10:10 -04:00
Stijn Tintel
05c9879524 Makefile: detect rst2man
On some distros, rst2man has a .py extension and there is no rst2man.
Fix build on such systems by detecting what is available.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-07-24 14:18:40 -04:00
Kent Overstreet
632feaa69a Bring back debug makefile target
This seems to have been dropped by mistake

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-07-23 18:06:02 -04:00
Kent Overstreet
646aabf327 Update bcachefs sources to 0a9be96b50 bcachefs: BSET_OFFSET() 2021-07-16 12:58:24 -04:00
Kent Overstreet
669fc107c6 Update bcachefs sources to 15178a6479 bcachefs: Update btree ptrs after every write 2021-07-15 21:42:36 -04:00
Kent Overstreet
86bd5c622c Update bcachefs sources to 787de128a5 bcachefs: Improvements to fsck check_dirents() 2021-07-14 20:31:38 -04:00
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