]>
git.sesse.net Git - bcachefs-tools-debian/log
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.
Justin Husted [Thu, 10 Oct 2019 02:27:22 +0000 (19:27 -0700)]
Change preempt_disable() etc. to use a recursive mutex.
This is part of the userspace implementation of the kernel APIs for
bcachefs-tools. The previous implementation just provided a barrier, but
this isn't sufficient to make the associated percpu implementation safe.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Justin Husted [Wed, 9 Oct 2019 08:03:47 +0000 (01:03 -0700)]
Add more fuse logging.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Kent Overstreet [Fri, 18 Oct 2019 20:51:15 +0000 (16:51 -0400)]
Enable caching of negative dentries
Kent Overstreet [Thu, 10 Oct 2019 22:03:33 +0000 (18:03 -0400)]
Simplify readdir
Kent Overstreet [Thu, 10 Oct 2019 22:29:26 +0000 (18:29 -0400)]
Write path now updates i_size/i_sectors
Justin Husted [Tue, 8 Oct 2019 23:21:59 +0000 (16:21 -0700)]
Use proper flags mask.
Justin Husted [Tue, 8 Oct 2019 23:06:07 +0000 (16:06 -0700)]
Prettify the align_io function by returning by value.
Justin Husted [Tue, 8 Oct 2019 22:57:34 +0000 (15:57 -0700)]
Fix missing mode setting in fuse mkdir.
Justin Husted [Tue, 8 Oct 2019 22:42:37 +0000 (15:42 -0700)]
Add fuse symlink and readlink support.
Also fix link.
Justin Husted [Tue, 8 Oct 2019 16:17:01 +0000 (09:17 -0700)]
Implement unaligned write support for fuse. Seems to work on initial
testing, but there are problems with cache coherency and journaling.
Justin Husted [Tue, 8 Oct 2019 04:21:18 +0000 (21:21 -0700)]
Factor alignment logic out of bcachefs_fuse_read.
Justin Husted [Tue, 8 Oct 2019 04:01:08 +0000 (21:01 -0700)]
Implement unaligned read support for fuse.
Justin Husted [Mon, 7 Oct 2019 23:41:38 +0000 (16:41 -0700)]
Make fuse read and write work (for aligned writes).
Read: There was a missing refcount on the closure.
Write: Unlike in the Linux kernel, we need to manually update the size
and timestamps, otherwise the operation will appear complete when viewed
via the cached inode, but after unmounting and mounting again the write
will be undone.
Justin Husted [Mon, 7 Oct 2019 21:21:39 +0000 (14:21 -0700)]
Fix fuse read/write to not segfault on unaligned IO.
Kent Overstreet [Fri, 4 Oct 2019 22:26:44 +0000 (18:26 -0400)]
initialize op->pos for write
Justin Husted [Fri, 4 Oct 2019 21:18:33 +0000 (14:18 -0700)]
Add valgrind handling: data read from io_submit was not being marked
properly. Manually mark it.
This might be better done by improving the valgrind wrapper for
io_submit.
Kent Overstreet [Fri, 4 Oct 2019 20:41:12 +0000 (16:41 -0400)]
fill in .st_ino in .getattr
Kent Overstreet [Fri, 4 Oct 2019 19:04:35 +0000 (15:04 -0400)]
build fixes; initial read/write methods
Justin Husted [Fri, 4 Oct 2019 04:56:01 +0000 (21:56 -0700)]
Fix infinite looping behavior with readdir.
Also adds partial . and .. support, and implements ENOTDIR error.
The source of this problem was due to the off-by-one interface expected
by readdir. Each directory entry contains a pointer to next, so it
cannot be emitted to the user until the next entry is actually read.
Returning the current position + 1 is insufficient, because the user
will just retry cur + 1 as the start position to see if they've reached
the end of the directory.
Since directory entries are keyed by a 64-bit hash in bcachefs, the
result was that the user would call readdir over and over with what it
believed the next pointer to be until "cur + 1" reached some enormous
64-bit value related to the hash for the "lost+found" entry.
Justin Husted [Thu, 3 Oct 2019 20:33:01 +0000 (13:33 -0700)]
Implement option parsing for fuse. The syntax is:
bcachefs fusemount dev mountpoint
or
bcachefs fusemount dev1:dev2:... mountpoint
Kent Overstreet [Tue, 1 Oct 2019 18:06:58 +0000 (14:06 -0400)]
fuse
Kent Overstreet [Wed, 16 Oct 2019 18:13:07 +0000 (14:13 -0400)]
Update bcachefs sources to
fc4f1d59cf bcachefs: Fix an iterator counting bug
Kent Overstreet [Sat, 12 Oct 2019 18:49:11 +0000 (14:49 -0400)]
Update bcachefs sources to
de906c3e2e bcachefs: Fix iterator counting for reflink pointers (again)
Kent Overstreet [Fri, 11 Oct 2019 19:04:27 +0000 (15:04 -0400)]
Update bcachefs sources to
d0625a4418 bcachefs: Fix creation of lost+found
Kent Overstreet [Thu, 10 Oct 2019 22:04:36 +0000 (18:04 -0400)]
Update bcachefs sources to
7e03c1ab0e bcachefs: Kill bchfs_extent_update()
Kent Overstreet [Fri, 4 Oct 2019 20:25:58 +0000 (16:25 -0400)]
Update bcachefs sources to
ce9293e9d0 bcachefs: Factor out fs-common.c
Kent Overstreet [Fri, 4 Oct 2019 20:22:31 +0000 (16:22 -0400)]
Update bcachefs sources to
cddca21efc bcachefs: Don't use sha256 for siphash str hash key
Kent Overstreet [Tue, 1 Oct 2019 20:30:36 +0000 (16:30 -0400)]
Update bcachefs sources to
380885b0b8 bcachefs: Fix counting iterators for reflink pointers
Kent Overstreet [Tue, 1 Oct 2019 19:55:42 +0000 (15:55 -0400)]
Update six locks
Kent Overstreet [Wed, 25 Sep 2019 19:23:29 +0000 (15:23 -0400)]
Update bcachefs sources to
5a3a4087af bcachefs: Convert a BUG_ON() to a warning
Kent Overstreet [Thu, 29 Aug 2019 16:22:08 +0000 (12:22 -0400)]
Have cmd_dump fix errors
Some errors can't be ignored, and fsck and thus dump will only complete
if we're fixing errors.
Kent Overstreet [Thu, 29 Aug 2019 17:32:04 +0000 (13:32 -0400)]
Update bcachefs sources to
fee79cd654 bcachefs: Fix BTREE_INSERT_NOMARK_OVERWRITES
Kent Overstreet [Thu, 29 Aug 2019 15:44:11 +0000 (11:44 -0400)]
Update bcachefs sources to
0d627739e9 bcachefs: Improve pointer marking checks and error messages
Kent Overstreet [Wed, 28 Aug 2019 17:43:18 +0000 (13:43 -0400)]
Add a way to pass arbitrary mount options to fsck
Kent Overstreet [Wed, 28 Aug 2019 17:22:29 +0000 (13:22 -0400)]
Update bcachefs sources to
05ef7000f2 bcachefs: Switch reconstruct_alloc to a mount option
Kent Overstreet [Wed, 28 Aug 2019 15:35:00 +0000 (11:35 -0400)]
Update llist code
This fixes a bug where the compiler was dropping a null ptr check