On 04/04/2018 02:34 AM, David Sterba wrote:
The volume mutex does not protect against anything in this case, the
comment about scrub is right but not related to locking and looks
confusing. The comment in btrfs_find_device_missing_or_by_path is wrong
and confusing too.
The device_list_mutex
On Mon, Apr 09, 2018 at 11:46:32PM +0800, Damenly Su wrote:
> Sorry for the previous reply in HTML format which is not delivered to
> the mail list.
>
> I mean there is already xfstests generic/405 for the situation.
> Thin provision devices need to call dmsetup to setup.
> I wonder If calling
On 04/09/2018 07:53 PM, David Sterba wrote:
On Mon, Apr 09, 2018 at 04:39:03PM +0800, Anand Jain wrote:
On 04/04/2018 02:34 AM, David Sterba wrote:
The volume mutex does not protect against anything in this case, the
comment about scrub is right but not related to locking and looks
On 04/04/2018 02:34 AM, David Sterba wrote:
Mutual exclusion of device add/rm and balance was done by the volume
mutex up to version 3.7. The commit 5ac00addc7ac091109 ("Btrfs: disallow
mutually exclusive admin operations from user mode") added a bit that
essentially tracked the same
On Fri, Mar 30, 2018 at 01:48:52PM +0800, Qu Wenruo wrote:
> The patchset can be fetched from github:
> https://github.com/adam900710/btrfs-progs/tree/eb_cleanup
>
> Just like kernel cleanup and refactors, this patchset will embed
> btrfs_fs_info structure into extent_buffer.
>
> And fixes
Sorry for the previous reply in HTML format which is not delivered to
the mail list.
I mean there is already xfstests generic/405 for the situation.
Thin provision devices need to call dmsetup to setup.
I wonder If calling dmsetup in progs tests is acceptable or not.
If it is, I will do it.
This patch enhance the following things:
- tree block header
* add generation and owner output for node and leaf
- node pointer generation output
- allow btrfs_print_tree() to not follow nodes
* just like btrfs-progs
Please note that, although function btrfs_print_tree() is not called by
Hi Qu,
On 04/09/2018 11:19 AM, Qu Wenruo wrote:
> When manually patching super blocks, current validation check is pretty
> weak (limited to magic number and csum) and doesn't provide extra check
> for some obvious corruption (like invalid sectorsize).
[...]
>
> Signed-off-by: Qu Wenruo
On Fri, Apr 6, 2018 at 10:43 AM, Liu Bo wrote:
> On Fri, Apr 6, 2018 at 6:21 AM, David Sterba wrote:
>> On Thu, Apr 05, 2018 at 11:58:16AM -0700, Liu Bo wrote:
>>> On Thu, Apr 5, 2018 at 9:48 AM, David Sterba wrote:
>>> > On Sat, Mar 31,
On 2018年04月09日 23:05, David Sterba wrote:
> On Mon, Apr 09, 2018 at 10:29:34PM +0800, Qu Wenruo wrote:
--- a/cmds-inspect-dump-tree.c
+++ b/cmds-inspect-dump-tree.c
@@ -303,7 +303,9 @@ int cmd_inspect_dump_tree(int argc, char **argv)
int uuid_tree_only = 0;
int
On 2018年04月10日 05:50, Goffredo Baroncelli wrote:
> Hi Qu,
>
> On 04/09/2018 11:19 AM, Qu Wenruo wrote:
>> When manually patching super blocks, current validation check is pretty
>> weak (limited to magic number and csum) and doesn't provide extra check
>> for some obvious corruption (like
Since ret must be 0 when goes to scrub status file's write,
so scrub_write_buf(fd, buf, ret) writes nothing.
And when I check the process for read scrub status file,
there is no process for this field.
So, remove it.
Signed-off-by: Gu Jinxiang
---
cmds-scrub.c | 1 -
1 file
On Mon, Apr 09, 2018 at 10:29:34PM +0800, Qu Wenruo wrote:
> >> --- a/cmds-inspect-dump-tree.c
> >> +++ b/cmds-inspect-dump-tree.c
> >> @@ -303,7 +303,9 @@ int cmd_inspect_dump_tree(int argc, char **argv)
> >>int uuid_tree_only = 0;
> >>int roots_only = 0;
> >>int root_backups = 0;
>
On 04/04/2018 02:34 AM, David Sterba wrote:
The helper is quite simple and I'd like to see the locking in the
caller.
Signed-off-by: David Sterba
For the version at:
git://github.com/kdave/btrfs-devel dev/remove-volume-mutex
Reviewed-by: Anand Jain
On Mon, Apr 02, 2018 at 06:11:17PM +0800, Gu Jinxiang wrote:
> Get data_extents_scrubbed value for twice, since there is only
> one data_extents_scrubbed in struct btrfs_scrub_progress, remove
> the duplicate one.
>
> Signed-off-by: Gu Jinxiang
Applied, thanks.
--
To
On 2018年04月09日 22:12, David Sterba wrote:
> On Fri, Apr 06, 2018 at 02:39:19PM +0800, Qu Wenruo wrote:
>> Corrupted extent tree (either the root node or leaf) can normally block
>> us from open the fs.
>> As normally open_ctree() has the following call chain:
>> __open_ctree_fd()
>> |-
On Tue, Apr 03, 2018 at 01:39:47PM +0800, Qu Wenruo wrote:
> Signed-off-by: Qu Wenruo
> ---
> .../031-metadatadump-check-data-csum/test.sh | 32
> ++
> 1 file changed, 32 insertions(+)
> create mode 100755
On Tue, Apr 03, 2018 at 01:39:46PM +0800, Qu Wenruo wrote:
> For metadata dump (fs restored by btrfs-image), since no data is
> restored check sum verification will definitely report error.
>
> Add such check in check_csums() and prompt for user.
>
> Issue: #103
> Signed-off-by: Qu Wenruo
On Thu, Mar 29, 2018 at 05:11:19PM +0800, Gu Jinxiang wrote:
> When use a given path end with a slash like below,
> the output of path will have double slash.
>
> Do not add extra slash if there is already one in the given
> path.
>
> $ btrfs filesystem du ./test/
> output:
> Total Exclusive
When running btrfs/074 with enough CPUs, it's possible (around 1%) to
hit first key mismatch warning.
Most of such warning happens in split_leaf() where it can ignore error
from push_leaf_right(), some of such problem also happens in
btrfs_search_forward().
Since it could break normal tree
When manually patching super blocks, current validation check is pretty
weak (limited to magic number and csum) and doesn't provide extra check
for some obvious corruption (like invalid sectorsize).
This patch will enhance dump-super by:
1) Refactor print function and add checker helper macro
On 04/09/2018 04:54 PM, Nikolay Borisov wrote:
On 9.04.2018 11:39, Anand Jain wrote:
On 04/04/2018 02:34 AM, David Sterba wrote:
The volume mutex does not protect against anything in this case, the
comment about scrub is right but not related to locking and looks
confusing. The comment
On Sun, Apr 08, 2018 at 10:07:54AM +0800, Eryu Guan wrote:
> On Thu, Apr 05, 2018 at 10:56:14PM +0100, fdman...@kernel.org wrote:
> > From: Filipe Manana
> >
> > Test that fsync operations preserve extents allocated with fallocate(2)
> > that are placed beyond a file's size.
>
On Mon, Apr 9, 2018 at 10:51 AM, Dave Chinner wrote:
> On Sun, Apr 08, 2018 at 10:07:54AM +0800, Eryu Guan wrote:
>> On Thu, Apr 05, 2018 at 10:56:14PM +0100, fdman...@kernel.org wrote:
>> > From: Filipe Manana
>> >
>> > Test that fsync operations preserve
Hello Qu,
Thank you very much for the answer. I am sorry to answer late because before
bothering more, I decided to perform another cloning test.
In this time he has joined the second device correctly.
The problem has occurred because they are BCACHE devices, and although the
SEED disk does not
Since the out label has been deleted, this free_extent_buffer will never
be executed.
Fixes: f37ae8d275c2 ("btrfs-progs: print-tree: Enhance warning on tree block
level mismatch and error handling")
Signed-off-by: Lu Fengqi
---
print-tree.c | 2 --
1 file changed, 2
On 2018年04月09日 16:06, Nikolay Borisov wrote:
>
>
> On 9.04.2018 10:47, Qu Wenruo wrote:
>> When manually patching super blocks, current validation check is pretty
>> weak (limited to magic number and csum) and doesn't provide extra check
>> for some obvious corruption (like invalid
On 04/04/2018 02:34 AM, David Sterba wrote:
The function __cancel_balance name is confusing with the cancel
operation of balance and it really resets the state of balance back to
zero. The unset_balance_control helper is called only from one place and
simple enough to be inlined.
When manually patching super blocks, current validation check is pretty
weak (limited to magic number and csum) and doesn't provide extra check
for some obvious corruption (like invalid sectorsize).
This patch will enhance dump-super by:
1) Refactor print function and add checker helper macro
On 9.04.2018 10:47, Qu Wenruo wrote:
> When manually patching super blocks, current validation check is pretty
> weak (limited to magic number and csum) and doesn't provide extra check
> for some obvious corruption (like invalid sectorsize).
>
> This patch will enhance dump-super by:
>
> 1)
On 04/04/2018 02:34 AM, David Sterba wrote:
Replace a WARN_ON with a proper check and message in case something goes
really wrong and resumed balance cannot set up its exclusive status.
The check is a user friendly assertion, I don't expect to ever happen
under normal circumstances.
Also
On 04/04/2018 02:34 AM, David Sterba wrote:
The volume mutex does not protect against anything in this case, the
comment about scrub is right but not related to locking and looks
confusing. The comment in btrfs_find_device_missing_or_by_path is wrong
and confusing too.
The device_list_mutex
On 9.04.2018 11:39, Anand Jain wrote:
>
>
> On 04/04/2018 02:34 AM, David Sterba wrote:
>> The volume mutex does not protect against anything in this case, the
>> comment about scrub is right but not related to locking and looks
>> confusing. The comment in
On Mon, Apr 09, 2018 at 04:39:03PM +0800, Anand Jain wrote:
>
>
> On 04/04/2018 02:34 AM, David Sterba wrote:
> > The volume mutex does not protect against anything in this case, the
> > comment about scrub is right but not related to locking and looks
> > confusing. The comment in
Preparatory work to pass fs_info to btrfs_add_extent_mapping so we can
get a better tracepoint message. Extent maps do not need fs_info for
anything so we only add a dummy one without any other initialization.
Signed-off-by: David Sterba
---
fs/btrfs/tests/extent-map-tests.c |
Most of the strings are prefixed by the UUID of the filesystem that
generates the message, however there are a few events that still
opencode the macro magic and can be converted to the common macros.
Signed-off-by: David Sterba
---
include/trace/events/btrfs.h | 30
We really want to know to which filesystem the extent map events belong,
but as it cannot be reached from the extent_map pointers, we need to
pass it down the callchain.
Signed-off-by: David Sterba
---
fs/btrfs/extent_map.c | 6 --
fs/btrfs/extent_map.h
The size of ino_t depends on 32/64bit architecture type. Btrfs stores
the full 64bit inode anyway so we should use it.
Signed-off-by: David Sterba
---
include/trace/events/btrfs.h | 47 ++--
1 file changed, 24 insertions(+), 23
The preferred style is to avoid spaces between key and value and no
commas between key=values.
Signed-off-by: David Sterba
---
include/trace/events/btrfs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/trace/events/btrfs.h
On Mon, Apr 09, 2018 at 11:00:52AM +0100, Filipe Manana wrote:
> On Mon, Apr 9, 2018 at 10:51 AM, Dave Chinner wrote:
> > On Sun, Apr 08, 2018 at 10:07:54AM +0800, Eryu Guan wrote:
> >> On Thu, Apr 05, 2018 at 10:56:14PM +0100, fdman...@kernel.org wrote:
> > You also cannot
On Sat, Apr 07, 2018 at 06:43:19PM +0800, Anand Jain wrote:
> On 04/07/2018 02:42 PM, Anand Jain wrote:
> > On 04/04/2018 02:34 AM, David Sterba wrote:
> >> The device replace is paused by unmount or read only remount, and
> >> resumed on next mount or write remount.
> >>
> >> The exclusive status
Switch the inode number type to u64, plus other cleanups and fixups.
David Sterba (7):
btrfs: tracepoints, use correct type for inode number
btrfs: tracepoints, use %llu instead of %Lu
btrfs: tracepoints, drop unnecessary ULL casts
btrfs: tracepoints, fix whitespace in strings
btrfs:
For consistency, use the %llu form.
Signed-off-by: David Sterba
---
include/trace/events/btrfs.h | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h
index dafd58ad86ec..200c45911919
The (unsigned long long) casts are not necessary since long ago.
Signed-off-by: David Sterba
---
include/trace/events/btrfs.h | 124 +--
1 file changed, 62 insertions(+), 62 deletions(-)
diff --git a/include/trace/events/btrfs.h
On Tue, Mar 27, 2018 at 10:45:43AM +0300, Nikolay Borisov wrote:
> There is already a replacement in the face of btrfs inspect-internal
> dump-tree. And this command is just a simple wrapper around it. Just
> remove it and adjust the show-blocks script to call the main btrfs
> binary to achieve
On Fri, Apr 06, 2018 at 02:39:19PM +0800, Qu Wenruo wrote:
> Corrupted extent tree (either the root node or leaf) can normally block
> us from open the fs.
> As normally open_ctree() has the following call chain:
> __open_ctree_fd()
> |- btrfs_setup_all_roots()
>|- btrfs_read_block_groups()
>
On Mon, Apr 02, 2018 at 11:30:12AM +0800, Gu Jinxiang wrote:
> Make find_device to be consistent with kernel according
> 35c70103a528 ("btrfs: refactor find_device helper")
>
> And, modify the compare condition from both devid and uuid to
> devid or devid and uuid according
> 8f18cf13396c
From: Filipe Manana
Test that fsync operations preserve extents allocated with fallocate(2)
that are placed beyond a file's size.
This test is motivated by a bug found in btrfs where unwritten extents
beyond the inode's i_size were not preserved after a fsync and power
On Tue, Apr 03, 2018 at 04:39:45PM +0800, Su Yue wrote:
> when mkfs.btrfs on a thin provision device which has very small
> backing size and big virtual size, all code works well in
> mkfs.btrfs until close_ctree() is called.
> close_ctree() fails to sync device due to small backing size
> while
On Sun, Apr 08, 2018 at 09:46:24AM +0100, Filipe Manana wrote:
> On Sun, Apr 8, 2018 at 8:46 AM, Eryu Guan wrote:
> > On Wed, Mar 28, 2018 at 12:55:30PM +0100, fdman...@kernel.org wrote:
> >> From: Filipe Manana
> >>
> >> Test that when we have the no-holes
On Mon, Apr 09, 2018 at 01:43:30PM +0800, Gu Jinxiang wrote:
> Since function path_cat and path_cat3 are not used anymore, remove them.
It's good to document when the functions where deprecated, 4.0, which
lets us check that the period was long enough for any users to adapt as
it's in the public
On Mon, Apr 09, 2018 at 02:05:37PM +0800, Qu Wenruo wrote:
>This patch enhance the following things:
>
>- tree block header
> * add generation and owner output for node and leaf
>- node pointer generation output
>- allow btrfs_print_tree() to not follow nodes
> * just like btrfs-progs
>
>Please
52 matches
Mail list logo