]>
git.sesse.net Git - bcachefs-tools-debian/log
Kent Overstreet [Fri, 26 Jun 2020 18:51:58 +0000 (14:51 -0400)]
Update bcachefs sources to
b1708f0191 bcachefs: Fix a null ptr deref in bch2_btree_iter_traverse_one()
Kent Overstreet [Mon, 15 Jun 2020 21:00:02 +0000 (17:00 -0400)]
Update bcachefs sources to
8a316f4112 bcachefs: Give bkey_cached_key same attributes as bpos
Kent Overstreet [Mon, 15 Jun 2020 20:27:30 +0000 (16:27 -0400)]
Add an option to list_journal to list entire contents of journal
Kent Overstreet [Sat, 13 Jun 2020 23:31:45 +0000 (19:31 -0400)]
Update bcachefs sources to
4837f82ee1 bcachefs: Use cached iterators for alloc btree
Kent Overstreet [Thu, 4 Jun 2020 11:57:09 +0000 (07:57 -0400)]
Fix build when CONFIG_BCACHEFS_DEBUG=y
Kent Overstreet [Wed, 3 Jun 2020 20:21:35 +0000 (16:21 -0400)]
Update bcachefs sources to
c9b4a210f9 fixup! bcachefs: Fixes for going RO
Kent Overstreet [Mon, 25 May 2020 22:33:18 +0000 (18:33 -0400)]
Improved functionality for cmd_list
koverstreet [Sat, 23 May 2020 16:55:02 +0000 (12:55 -0400)]
Merge pull request #31 from yshui/master
kmalloc: use posix_memalign
Yuxuan Shui [Sat, 23 May 2020 16:28:52 +0000 (17:28 +0100)]
kmalloc: use posix_memalign
posix_memalign doesn't have the restriction that size must be a multiply
of alignment.
This also reverts the fix in commit
f3fdbbfa92defb1f1d12c0038513b69b52baf33e .
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Kent Overstreet [Thu, 21 May 2020 21:19:47 +0000 (17:19 -0400)]
Update log2.h from linux kernel
This fixes a build breakage where the old log2.g referenced
__ilog2_NaN() which we weren't defining.
koverstreet [Thu, 21 May 2020 20:34:58 +0000 (16:34 -0400)]
Merge pull request #30 from yshui/master
Make sure aligned_alloc size is a multiply of alignment
Yuxuan Shui [Thu, 21 May 2020 13:36:00 +0000 (14:36 +0100)]
Make sure aligned_alloc size is a multiply of alignment
Fix a ASan complaint.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Kent Overstreet [Mon, 18 May 2020 18:56:35 +0000 (14:56 -0400)]
Add reconstruct_alloc option to fsck
Kent Overstreet [Fri, 15 May 2020 01:46:09 +0000 (21:46 -0400)]
Update bcachefs sources to
e1f6739c4a bcachefs: Fix another iterator counting bug
Kent Overstreet [Sat, 9 May 2020 01:25:25 +0000 (21:25 -0400)]
Add --offline to device set-state
Kent Overstreet [Sat, 9 May 2020 01:24:53 +0000 (21:24 -0400)]
Don't build mount.bcachefs by default
So as not to depend on rust yet
Kent Overstreet [Fri, 8 May 2020 22:45:56 +0000 (18:45 -0400)]
Improve list_journal command
koverstreet [Tue, 5 May 2020 21:59:44 +0000 (17:59 -0400)]
Merge pull request #28 from yshui/mount
Add a mount.bcachefs tool
Yuxuan Shui [Mon, 4 May 2020 13:28:38 +0000 (14:28 +0100)]
Add a mount.bcachefs tool
This tool currently has most of the fundmental features implemented.
It can mount a filesystem specified by uuid, it can ask password for an
encrypted filesystem.
There may be some work that needs to be done to make it behave more like
a "mount.*" tool.
Related: #1
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
koverstreet [Tue, 5 May 2020 20:25:43 +0000 (16:25 -0400)]
Merge pull request #27 from yshui/master
Fix building on musl
Yuxuan Shui [Sun, 3 May 2020 18:21:17 +0000 (19:21 +0100)]
Fix building on musl
* Add missing linux/stddef.h includes
* Explicitly cast PAGE_SIZE to size_t. PAGE_SIZE is defined without UL
suffix in musl
* Musl doesn't define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, so
initialize the mutexes with pthread_once.
Kent Overstreet [Sat, 25 Apr 2020 20:42:09 +0000 (16:42 -0400)]
Set device read-only if necessary before evacuate
Kent Overstreet [Fri, 24 Apr 2020 23:08:39 +0000 (19:08 -0400)]
Flush stdout when displaying progress bar
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Kent Overstreet [Fri, 24 Apr 2020 01:16:05 +0000 (21:16 -0400)]
Don't use pkgconfig for libkeyutils
Centos 7 has an old version that doesn't have the .pc file
Kent Overstreet [Sat, 4 Apr 2020 20:48:39 +0000 (16:48 -0400)]
Update bcachefs sources to
a27d7265e7 bcachefs: Fix a debug mode assertion
Kent Overstreet [Sat, 4 Apr 2020 17:59:13 +0000 (13:59 -0400)]
Update bcachefs sources to
7bfc741f64 bcachefs: Fix a null ptr deref during journal replay
Kent Overstreet [Mon, 30 Mar 2020 21:46:47 +0000 (17:46 -0400)]
Update bcachefs sources to
a897b0f199 bcachefs: Fix a locking bug
Kent Overstreet [Mon, 30 Mar 2020 18:34:20 +0000 (14:34 -0400)]
Update bcachefs sources to
275cba438e bcachefs: Fix inodes pass in fsck
Kent Overstreet [Wed, 25 Mar 2020 21:59:36 +0000 (17:59 -0400)]
Update bcachefs sources to
96b991466a bcachefs: Improve error message in fsck
Kent Overstreet [Wed, 25 Mar 2020 20:20:45 +0000 (16:20 -0400)]
Add a command for dumping contents of journal
Kent Overstreet [Wed, 25 Mar 2020 20:15:56 +0000 (16:15 -0400)]
Update bcachefs sources to
76f72a0cc7 bcachefs: Improve error message in fsck
Kent Overstreet [Wed, 25 Mar 2020 20:01:38 +0000 (16:01 -0400)]
Use pkgconfig for libkeyutils
Kent Overstreet [Wed, 25 Mar 2020 19:56:38 +0000 (15:56 -0400)]
Update bcachefs sources to
fd637ebda0 bcachefs: Journal updates to interior nodes
Kent Overstreet [Wed, 18 Mar 2020 15:49:11 +0000 (11:49 -0400)]
Update bcachefs sources to
3592e42edf bcachefs: Shut down quicker
Kent Overstreet [Tue, 17 Mar 2020 16:45:17 +0000 (12:45 -0400)]
Update bcachefs sources to
b47904df3c bcachefs: Clear BCH_FEATURE_extents_above_btree_updates on clean shutdown
Kent Overstreet [Mon, 16 Mar 2020 00:24:57 +0000 (20:24 -0400)]
Update bcachefs sources to
d9bb516b2d bcachefs: Move extent overwrite handling out of core btree code
Kent Overstreet [Mon, 9 Mar 2020 20:27:23 +0000 (16:27 -0400)]
Update bcachefs sources to
7e07e19c29 bcachefs: Traverse iterator in journal replay
Kent Overstreet [Mon, 2 Mar 2020 22:10:54 +0000 (17:10 -0500)]
Update bcachefs sources to
4a4139a563 bcachefs: Fix extent_sort_fix_overlapping()
Kent Overstreet [Mon, 2 Mar 2020 20:49:20 +0000 (15:49 -0500)]
Change cmd_dump to not read in leaf nodes
Kent Overstreet [Wed, 26 Feb 2020 22:35:47 +0000 (17:35 -0500)]
Update bcachefs sources to
1210f6c925 bcachefs: BCH_SB_FEATURES_ALL
koverstreet [Wed, 26 Feb 2020 18:22:30 +0000 (13:22 -0500)]
Merge pull request #26 from unquietwiki/master
RPM packaging support
Michael Adams [Mon, 24 Feb 2020 08:23:48 +0000 (00:23 -0800)]
Update userspace-rcu.spec
Kent Overstreet [Sat, 22 Feb 2020 21:21:32 +0000 (16:21 -0500)]
Update bcachefs sources to
9017d85854 bcachefs: btree_ptr_v2
Kent Overstreet [Tue, 21 Jan 2020 22:24:32 +0000 (17:24 -0500)]
Update bcachefs sources to
3cd63315a6 bcachefs: Track incompressible data
Michael Adams [Tue, 21 Jan 2020 09:30:01 +0000 (01:30 -0800)]
RPM packaging support
Kent Overstreet [Thu, 9 Jan 2020 23:02:22 +0000 (18:02 -0500)]
Don't leak ksets
Kent Overstreet [Mon, 6 Jan 2020 18:49:52 +0000 (13:49 -0500)]
Update bcachefs sources to
d763e8ab17 bcachefs: Don't lose needs_whiteout in overwrite path
Kent Overstreet [Sun, 5 Jan 2020 00:24:13 +0000 (19:24 -0500)]
Update bcachefs sources to
c9eb15545d bcachefs: Don't call trans_iter_put() on error pointer
Kent Overstreet [Sat, 4 Jan 2020 20:46:31 +0000 (15:46 -0500)]
Fix dump command for btree ptr key type change
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Kent Overstreet [Sat, 4 Jan 2020 00:10:00 +0000 (19:10 -0500)]
fs_usage cmd fixes
- Sort devices by device name if they don't have a label
- We were printing the wrong devices in the device list in the per-data
entries
Kent Overstreet [Mon, 30 Dec 2019 16:50:38 +0000 (11:50 -0500)]
Merge remote-tracking branch 'elladan/master'
Justin Husted [Sun, 29 Dec 2019 11:07:56 +0000 (03:07 -0800)]
Make die exit using _exit
Exiting the standard way on error caused teardown in bad state problems.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Kent Overstreet [Sun, 29 Dec 2019 16:15:34 +0000 (11:15 -0500)]
Update bcachefs sources to
aae76fba15 bcachefs: Use KEY_TYPE_deleted whitouts for extents
Justin Husted [Sun, 29 Dec 2019 04:38:26 +0000 (20:38 -0800)]
Well, arm64 crashed. Turn that off for now.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 29 Dec 2019 04:34:31 +0000 (20:34 -0800)]
bcachefs-tools: Add arm64 build on travis-ci.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 29 Dec 2019 02:50:49 +0000 (18:50 -0800)]
Add a travis.yml file for bcachefs-tools.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 29 Dec 2019 04:09:22 +0000 (20:09 -0800)]
bcachefs-tools: Fix test.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Kent Overstreet [Sun, 29 Dec 2019 01:34:36 +0000 (20:34 -0500)]
Update bcachefs sources to
1569db10e2 bcachefs: Use KEY_TYPE_deleted whitouts for extents
Kent Overstreet [Sun, 29 Dec 2019 01:25:19 +0000 (20:25 -0500)]
show-super now lists superblock features
Kent Overstreet [Sun, 29 Dec 2019 01:20:17 +0000 (20:20 -0500)]
Update bcachefs sources to
86a99a7b7f bcachefs: Convert some enums to x-macros
Justin Husted [Sat, 28 Dec 2019 23:16:09 +0000 (15:16 -0800)]
bcachefs-tools: Add a smoke test master script.
This script builds and runs with various options to enable easy test
coverage.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 29 Dec 2019 00:56:24 +0000 (16:56 -0800)]
bcachefs-tools: fix test bug in valgrind handling.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sat, 28 Dec 2019 23:56:49 +0000 (15:56 -0800)]
bcachefs-tools: Fix build errors.
The BTREE_INSERT_ATOMIC removal broke fuse.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sat, 28 Dec 2019 23:39:20 +0000 (15:39 -0800)]
bachefs-tools: Fix broken test code.
A check was missing in some of the python test code, probably from a bad
cherry-pick.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sat, 28 Dec 2019 23:37:42 +0000 (15:37 -0800)]
bcachefs-tools: Fix build break with FUSE.
bch2_link_trans() in the filesystem side was fixed to do timestamps
properly, but the change to the tools call got lost.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Kent Overstreet [Sat, 28 Dec 2019 23:19:05 +0000 (18:19 -0500)]
Update bcachefs sources to
cfb41d25c7 bcachefs: Add an assertion to track down a heisenbug
Justin Husted [Tue, 17 Dec 2019 05:06:40 +0000 (21:06 -0800)]
Make valgrind disabled by default in unit tests.
Since valgrind runtime support is disabled by default, we shouldn't run
the tests with valgrind by default.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Kent Overstreet [Fri, 27 Dec 2019 19:04:16 +0000 (14:04 -0500)]
Fix bchu_fs_get_devices()
Kent Overstreet [Wed, 18 Dec 2019 21:11:11 +0000 (16:11 -0500)]
Redo cmd_fs_usage for new ioctls
Kent Overstreet [Wed, 18 Dec 2019 21:11:04 +0000 (16:11 -0500)]
Update bcachefs sources to
5d7142b75a bcachefs: Redo filesystem usage ioctls
Kent Overstreet [Wed, 18 Dec 2019 20:28:41 +0000 (15:28 -0500)]
Update bcachefs sources to
a8faf2472b bcachefs: Update directory timestamps during link
Kent Overstreet [Mon, 16 Dec 2019 22:36:24 +0000 (17:36 -0500)]
Update bcachefs sources to
adfbb84c7c fixup! bcachefs: Fix bch2_verify_insert_pos()
koverstreet [Mon, 16 Dec 2019 20:45:20 +0000 (15:45 -0500)]
Merge pull request #24 from brendon-boldt/new-install-distros
New install distros
Kent Overstreet [Mon, 16 Dec 2019 19:42:09 +0000 (14:42 -0500)]
Update bcachefs sources to
fbb669e9de bcachefs: Kill btree_node_iter_large
Justin Husted [Wed, 20 Nov 2019 05:44:58 +0000 (21:44 -0800)]
Clean up after failed unit tests better.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 15 Dec 2019 00:25:05 +0000 (16:25 -0800)]
Increase stack size of userspace threads to 32k.
Certain fuse tests crashed inside of libc calls such as fprintf() with
only 16k of stack.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Brendon Boldt [Fri, 6 Dec 2019 16:22:19 +0000 (11:22 -0500)]
Add note about make clean for fuse build
Brendon Boldt [Fri, 6 Dec 2019 05:51:10 +0000 (00:51 -0500)]
Add Fedora, Ubuntu, Arch info to INSTALL
Add fuse3 (>=3.7) version to Makefile
Kent Overstreet [Wed, 4 Dec 2019 22:49:34 +0000 (17:49 -0500)]
Put valgrind support behind CONFIG_VALGRIND
Kent Overstreet [Thu, 28 Nov 2019 20:08:27 +0000 (15:08 -0500)]
Merge commit '
780de81b36 '
Justin Husted [Mon, 18 Nov 2019 23:36:36 +0000 (15:36 -0800)]
Support remounting in fuse tests.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Mon, 18 Nov 2019 21:51:31 +0000 (13:51 -0800)]
Make valgrind optional in tests.
Add an option to disable valgrind in the test suite, via the variable:
BCACHEFS_TEST_USE_VALGRIND=no
Additionally, note how to run tests in parallel in the INSTALL documentation.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Kent Overstreet [Mon, 18 Nov 2019 01:36:59 +0000 (20:36 -0500)]
Update bcachefs sources to
d372ddcbfa bcachefs: Reorganize extents.c
Justin Husted [Mon, 11 Nov 2019 20:00:08 +0000 (12:00 -0800)]
Make fuse3 support optional and document.
The experimental fuse3 support is not complete yet, and fuse3 is new and
still difficult to install on some platforms.
Make it optional at compile time, and default to off.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Kent Overstreet [Sun, 10 Nov 2019 03:49:03 +0000 (22:49 -0500)]
Update bcachefs sources to
b1a4dc53be bcachefs: Set lost+found mode to 0700
Justin Husted [Sun, 10 Nov 2019 03:05:24 +0000 (19:05 -0800)]
Temporary fix for lost+found file permission.
lost+found should not be group or world readable. This is a staging fix
pending merge with the kernel tree.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 10 Nov 2019 03:00:56 +0000 (19:00 -0800)]
Implement basic fuse mount tests.
The purpose of these tests is to verify that bcachefs fuse support works
as expected, including gathering valgrind errors from the bcachefs
executable.
To do this, bcachefs is executed from a helper thread in the new
util.BFuse class, which goes about setting up and validating the
valgrind data as well as making sure the mount has completed
sufficiently before the test starts executing.
This also includes some basic functionality smoke tests which cover file
creation, timestamps, etc.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 10 Nov 2019 02:53:20 +0000 (18:53 -0800)]
Fix memory leak in fuse write.
The write buffer was being leaked in bcachefs_fuse_write().
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Fri, 8 Nov 2019 02:58:32 +0000 (18:58 -0800)]
Make userspace blkdev cleanup code more robust.
The existing cleanup code would silently cancel disk IO requests, if
somehow the calling code did not wait for completion. This code now
tracks requests and will bug if any are lost.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Fri, 8 Nov 2019 00:44:04 +0000 (16:44 -0800)]
Fix refcount bug in blkdev and timer kthreads.
The shutdown code in
d79d57e and
b20e160 had a race condition during
shutdown, due to not owning a reference on the associated task_struct
while the associated threads shut themselves down.
Patch over this by taking an appropriate reference.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Mon, 4 Nov 2019 23:34:02 +0000 (15:34 -0800)]
Use the correct clock for userspace time.
The ktime_get_coarse_real_ts64() implementation for userspace was using
CLOCK_MONOTONIC instead of CLOCK_REALTIME_COARSE. This resulted in
files being timestamped with a time close to the unix epoch.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Mon, 4 Nov 2019 05:27:57 +0000 (21:27 -0800)]
Add makefile support for tags.
Also, update .gitignore for various things.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Kent Overstreet [Mon, 4 Nov 2019 17:53:59 +0000 (12:53 -0500)]
Update bcachefs sources to
9e76e8d98c bcachefs: Fix uninitialized field in hash_check_init()
Justin Husted [Sun, 3 Nov 2019 07:35:03 +0000 (00:35 -0700)]
Initial version of bcachefs tests.
So far, these tests just test basic format, fsck, and list functions
under valgrind, as well as a few self-validation tests.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 3 Nov 2019 05:42:55 +0000 (22:42 -0700)]
Stop blkdev completion thread at process exit time, to make valgrind
happy.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 3 Nov 2019 06:36:29 +0000 (23:36 -0700)]
Stop workqueue threads at process exit time, to make valgrind happy.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Sun, 3 Nov 2019 06:45:34 +0000 (23:45 -0700)]
Stop the timer task at process exit time, to make valgrind happy.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Fri, 1 Nov 2019 02:10:19 +0000 (19:10 -0700)]
Temporary import of valgrind fixes for bcachefs branch.
Justin Husted [Thu, 31 Oct 2019 17:20:42 +0000 (10:20 -0700)]
Fix memory leak in cmd_format.c
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Fri, 4 Oct 2019 23:25:50 +0000 (16:25 -0700)]
Add better valgrind support for journal write buffers.