On 2018年01月11日 15:23, Eryu Guan wrote:
> On Thu, Jan 11, 2018 at 02:55:57PM +0800, Qu Wenruo wrote:
>> Some test cases (AFAIK, btrfs RAID recovery test cases) read out certain
>> location to verify its data.
>>
>> Such read is mostly OK, but the golden output contains the on-disk
>> offset,
The variable @eb is assigned to leaf in fs_tree before insertion of
backref. It will causes wrong parent of new inserted backref.
Set @parent in the begin solves the problem.
Reviewed-by: Qu Wenruo
Signed-off-by: Su Yue
---
cmds-check.c | 10 +-
This patchset can be fetched from my github:
https://github.com/Damenly/btrfs-progs/tree/lowmem
based on kdave/devel.
Thanks to Qu Wenruo's ideas and suggestions first.
Patch[1-3] fix minor problems of lowmem repair.
Patch[4-8] introduce two ways to avoid extents overwrite:
1) Traverse trees
Since extents can be avoid overwrite by excluding or new chunk
allocation. It's unnessesary to do all repairs in one transaction.
This patch removes parameter @trans of repair_extent_data_item().
repair_extent_data_item() calls try_avoid_extents_overwrite()
and starts a transaction by itself.
If options '--init-extent-tree' and '--mode=lowmem' are both
input, all metadata blocks will be traversed twice.
First one is done by pin_metadata_blocks() in reinit_extent_tree().
Second one is in check_chunks_and_extents_v2().
Excluding instead of pining metadata blocks before reinit extent
Introduce create_chunk_and_block_block_group() to allocate new chunk
and corresponding block group.
The new function force_cow_in_new_chunk() first allocates new chunk
and records its start.
Then it modifies all metadata block groups cached and full.
Finally it marks the new block group uncached
This patch removes parameter @trans of repair_chunk_item().
It calls try_avoid_extents_overwrite() and starts a transaction by
itself.
Note: This patch and next patches cause error in lowmem repair like:
"Error: Commit_root already set when starting transaction".
This error will disappear after
This patch removes the parameter @trans of delete_extent_item().
It calls try_avoid_extents_overwrite() and starts a transaction by itself.
Note: This patch and next patches cause error in lowmem repair like:
"Error: Commit_root already set when starting transaction".
This error will disappear
In lowmem mode with '--repair', check_chunks_and_extents_v2()
will fix accounting in block groups and clear the error
bit BG_ACCOUNTING_ERROR.
However, return value of check_btrfs_root() doesn't contain error bits.
If extent tree is on error, lowmem repair always prints error and
returns nonzero
Remove @trans in check_chunks_and_extents.
After this patch, Lowmem repair should work again.
Signed-off-by: Su Yue
---
cmds-check.c | 12
1 file changed, 12 deletions(-)
diff --git a/cmds-check.c b/cmds-check.c
index 4d6245fa909b..4884d78681ab 100644
---
Excluding or pining all metadata blocks is not time-efficient for large
storage filesystems.
Here is another way to mark all metadata block groups full and allocate
a new chunk for CoW. So new reservered extents never overwrite
extents.
Introduce modify_block_groups_cache() to modify all blocks
In repair_extent_data_item(), path is not be released if some
errors occurs which causes extent buffer leak.
So release path in end of the function.
Reviewed-by: Qu Wenruo
Signed-off-by: Su Yue
---
cmds-check.c | 1 +
1 file changed, 1 insertion(+)
This patch removes parameter @trans of repair_extent_item().
It calls try_avoid_extents_overwrite() and starts a transaction by
itself.
Note: This patch and next patches cause error in lowmem repair like:
"Error: Commit_root already set when starting transaction".
This error will disappear after
This patch removes parameter @trans of check_leaf_items().
Note: This patch and next patches cause error in lowmem repair like:
"Error: Commit_root already set when starting transaction".
This error will disappear after removing @trans finished.
Signed-off-by: Su Yue
Remove parameters @trans of delete_extent_item() and
walk_down_tree_v2().
Signed-off-by: Su Yue
---
cmds-check.c | 18 --
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/cmds-check.c b/cmds-check.c
index 473d5a13cf3b..1c93b1178b23 100644
Define a global enum extents_operation to record extents are excluded
or new chunk is allocated for extents.
Another global u64 last_allocated_chunk records the last chunk start
allocated by lowmem repair.
Although global variable is not so graceful, it simplifies codes much.
New function
Introduce repair_block_accounting() which calls
btrfs_fix_block_accounting() to repair block group accouting.
Replace btrfs_fix_block_accounting() with the new function.
Signed-off-by: Su Yue
---
cmds-check.c | 26 +-
1 file changed, 25
Commit d17d6663c99c ("btrfs-progs: lowmem check: Fix regression which
screws up extent allocator") removes pin_metadata_blocks() from
lowmem repair.
So we have to find another way to exclude extents which should be
occupied by tree blocks.
Modify pin_down_tree_blocks() only for code reuse.
So
This patch removes parameter @trans of repair_tree_back_ref().
It calls try_avoid_extents_overwrite() and starts a transaction by
itself.
Note: This patch and next patches cause error in lowmem repair like:
"Error: Commit_root already set when starting transaction".
This error will disappear
On 11.01.2018 08:59, Gu Jinxiang wrote:
> Use enum READA_FORWARD instead of integers value to keep source robust.
>
> Changelog:
> v2->v1: change enum from READA_BACK to READA_FORWARD, since according
> to the logic of the source, it should reada_for_search forward, not
> backward.
> And,
On Thu, Jan 11, 2018 at 02:55:57PM +0800, Qu Wenruo wrote:
> Some test cases (AFAIK, btrfs RAID recovery test cases) read out certain
> location to verify its data.
>
> Such read is mostly OK, but the golden output contains the on-disk
> offset, which can differ due to underlying chunk change.
>
Use enum READA_FORWARD instead of integers value to keep source robust.
Changelog:
v2->v1: change enum from READA_BACK to READA_FORWARD, since according
to the logic of the source, it should reada_for_search forward, not
backward.
And, Reference:
commit e4058b54d1e4 ("btrfs: cleanup, use enum
Due to recent mkfs.btrfs chunk layout change, offset in golden output is
not flex to handle different mkfs chunk layout.
So use _filter_xfs_io_offset to filter out offset so golden output can
handle any chunk layout.
Signed-off-by: Qu Wenruo
---
tests/btrfs/142 | 9 ---
Due to recent mkfs.btrfs chunk layout change, offset in golden output is
not flex to handle different mkfs chunk layout.
So use _filter_xfs_io_offset to filter out offset so golden output can
handle any chunk layout.
Signed-off-by: Qu Wenruo
---
tests/btrfs/143 | 9 ---
Due to recent mkfs.btrfs chunk layout change, offset in golden output is
not flex to handle different mkfs chunk layout.
So use _filter_xfs_io_offset to filter out offset so golden output can
handle any chunk layout.
Signed-off-by: Qu Wenruo
---
tests/btrfs/140 | 9 ---
Some test cases (AFAIK, btrfs RAID recovery test cases) read out certain
location to verify its data.
Such read is mostly OK, but the golden output contains the on-disk
offset, which can differ due to underlying chunk change.
(This time is mkfs chunk layout change for btrfs)
So introduce macro
Due to recent mkfs.btrfs chunk layout change, offset in golden output is
not flex enough to handle different mkfs chunk layout.
So use _filter_xfs_io_offset to filter out offset so golden output can
handle any chunk layout.
Signed-off-by: Qu Wenruo
---
tests/btrfs/141 | 9
Ping?
Or do I need to rebase the patchset?
Thanks,
Qu
On 2017年11月07日 16:42, Qu Wenruo wrote:
> Can be fetched from github:
> https://github.com/adam900710/btrfs-progs/tree/mkfs_qgroup
>
> This patchset adds quota support, which means the result fs will have
> quota enabled by default, and its
The disk_key_type set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
chunk-recover.c | 2 +-
cmds-check.c | 4 ++--
convert/common.c | 17 +
ctree.c | 3 ++-
ctree.h
The block_group_chunk_objectid set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
chunk-recover.c | 2 +-
convert/common.c | 2 +-
ctree.h | 2 +-
extent-tree.c| 5 +++--
print-tree.c |
The root_last_snapshot set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-check.c | 2 +-
ctree.c | 2 +-
ctree.h | 2 +-
print-tree.c | 2 +-
4 files changed, 4 insertions(+), 4
The root_ctransid set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
ctree.h | 2 +-
print-tree.c | 2 +-
send-utils.c | 5 +++--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git
The block_group_flags set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-fragments.c | 2 +-
chunk-recover.c | 2 +-
cmds-check.c | 6 +++---
convert/common.c | 2 +-
ctree.h | 2
The root_used set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
convert/common.c | 2 +-
ctree.h | 3 ++-
extent-tree.c| 4 ++--
mkfs/common.c| 2 +-
print-tree.c | 2 +-
5 files
The root_bytenr set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-check.c | 12 ++--
cmds-inspect-dump-tree.c | 3 ++-
cmds-restore.c | 2 +-
convert/common.c
The root_limit set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
ctree.h | 3 ++-
print-tree.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ctree.h b/ctree.h
index
The root_otransid set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-list.c | 2 +-
ctree.h | 2 +-
print-tree.c | 2 +-
send-utils.c | 5 +++--
4 files changed, 6 insertions(+), 5
The root_refs set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-check.c | 16
convert/common.c | 2 +-
ctree.h | 2 +-
mkfs/common.c| 2 +-
print-tree.c |
The backup_tree_root set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 4 ++--
ctree.h | 2 +-
disk-io.c |
The root_generation_v2 set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
ctree.h | 2 +-
root-tree.c | 6 --
send-utils.c | 3 ++-
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git
The root_dirid set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-check.c | 4 ++--
convert/main.c | 4 ++--
ctree.h| 3 ++-
inode.c| 2 +-
mkfs/main.c| 2 +-
print-tree.c |
The backup_extent_root set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 4 ++--
ctree.h | 2 +-
3 files changed, 4
The backup_num_devices set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
ctree.h | 2 +-
3 files changed, 3
The backup_chunk_root_gen set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
ctree.h | 2 +-
3 files changed, 3
The backup_chunk_root set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 4 ++--
ctree.h | 2 +-
3 files changed, 4
The root_rtransid set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
ctree.h | 2 +-
print-tree.c | 2 +-
send-utils.c | 5 +++--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git
The backup_total_bytes set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 6 +++---
ctree.h | 2 +-
3 files changed, 5
The root_stransid set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
ctree.h | 2 +-
print-tree.c | 2 +-
send-utils.c | 5 +++--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git
The backup_csum_root set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 4 ++--
ctree.h | 2 +-
3 files changed, 4
The backup_extent_root_gen set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
ctree.h | 2 +-
3 files changed, 3
The root_flags set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-list.c | 2 +-
ctree.h | 2 +-
print-tree.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git
The backup_csum_root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
ctree.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff
The root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
backref.c | 2 +-
cmds-check.c | 10 +-
cmds-restore.c | 2 +-
convert/main.c | 2 +-
ctree.h| 2 +-
The backup_tree_root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
ctree.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff
The backup_extent_root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
ctree.h | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff
The backup_tree_root_gen set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
ctree.h | 2 +-
disk-io.c
The backup_dev_root set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
ctree.h | 2 +-
3 files changed, 3
The backup_csum_root_gen set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
ctree.h | 2 +-
3 files changed, 3
The backup_fs_root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
ctree.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff
The backup_fs_root_gen set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 4 ++--
ctree.h | 2 +-
3 files changed, 4
The super_bytenr set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
convert/common.c | 2 +-
convert/main.c| 4 ++--
ctree.h | 3
The backup_dev_root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
ctree.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff
The super_chunk_root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-find-root.c | 2 +-
cmds-inspect-dump-super.c | 2 +-
ctree.h | 2 +-
disk-io.c
The super_chunk_root_generation set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-find-root.c | 2 +-
chunk-recover.c | 2 +-
cmds-inspect-dump-super.c | 2 +-
ctree.h
The super_chunk_root set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
convert/common.c | 4 ++--
ctree.h | 2 +-
disk-io.c |
The super_compat_ro_flags set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 4 ++--
ctree.h | 4 ++--
disk-io.c | 4 ++--
free-space-tree.c
The super_log_root set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-zero-log.c | 4 ++--
cmds-check.c | 4 ++--
cmds-inspect-dump-super.c | 2 +-
cmds-rescue.c |
The super_log_root_transid set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-find-root.c | 2 +-
cmds-inspect-dump-super.c | 2 +-
ctree.h | 2 +-
3 files changed, 3
The super_uuid_tree_generation set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-find-root.c | 2 +-
cmds-inspect-dump-super.c | 2 +-
ctree.h | 3 ++-
3 files changed, 4
The super_root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-find-root.c | 2 +-
cmds-inspect-dump-super.c | 2 +-
ctree.h | 2 +-
disk-io.c | 6
The super_generation set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-find-root.c | 2 +-
chunk-recover.c | 2 +-
cmds-check.c | 2 +-
cmds-inspect-dump-super.c
The super_root set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 3 ++-
cmds-restore.c| 3 ++-
convert/common.c | 2 +-
ctree.h | 2 +-
The super_sys_array_size set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
chunk-recover.c | 2 +-
cmds-inspect-dump-super.c | 4 ++--
convert/common.c | 6 +++---
ctree.h
The super_csum_type set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
convert/common.c | 2 +-
ctree.h | 4 ++--
disk-io.c |
The super_nodesize set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
chunk-recover.c | 4 ++--
cmds-check.c | 6 +++---
cmds-inspect-dump-super.c | 2 +-
convert/common.c
The super_flags set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfstune.c | 14 +++---
chunk-recover.c | 2 +-
cmds-check.c | 2 +-
The super_root_dir set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
convert/main.c| 6 +++---
ctree.h | 2 +-
dir-test.c|
The super_total_bytes set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-check.c | 2 +-
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
convert/common.c |
The super_compat_flags set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
ctree.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
The super_magic set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 4 ++--
convert/common.c | 2 +-
ctree.h | 3 ++-
disk-io.c | 8
The super_sectorsize set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
chunk-recover.c | 4 ++--
cmds-inspect-dump-super.c | 2 +-
convert/common.c | 2 +-
ctree.h
The super_incompat_flags set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfstune.c | 4 ++--
cmds-inspect-dump-super.c | 4 ++--
convert/common.c | 2 +-
ctree.h
The super_num_devices set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
convert/common.c | 2 +-
ctree.h | 2 +-
disk-io.c
The super_cache_generation set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-check.c | 7 ---
cmds-inspect-dump-super.c | 2 +-
convert/common.c | 2 +-
ctree.h
These set/get functions defined by BTRFS_SETGET_STACK_FUNCS macro is
missing the prefix stack. I can't add an extent buffer version set/get
function as the result of the function name conflict.
To settle a matter once and for all, I have written a script to rename
these functions. And, I will
The backup_fs_root set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
ctree.h | 2 +-
3 files changed, 3
The root_generation set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-list.c | 4 ++--
cmds-check.c | 14 --
convert/common.c | 2 +-
convert/main.c | 2 +-
ctree.h
The disk_key_offset set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
chunk-recover.c | 2 +-
cmds-check.c | 4 ++--
convert/common.c | 16
ctree.c | 4 ++--
ctree.h
The block_group_used set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-fragments.c | 2 +-
chunk-recover.c| 4 ++--
cmds-check.c | 2 +-
convert/common.c | 2 +-
ctree.h
The super_log_root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-find-root.c | 2 +-
btrfs-zero-log.c | 4 ++--
cmds-check.c | 2 +-
The super_bytes_used set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
chunk-recover.c | 5 +++--
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
convert/common.c
The backup_dev_root_gen set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 4 ++--
ctree.h | 2 +-
3 files changed, 4
The disk_key_objectid set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
btrfs-list.c | 2 +-
chunk-recover.c| 2 +-
cmds-check.c | 14 --
convert/common.c | 15
The backup_bytes_used set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
cmds-inspect-dump-tree.c | 2 +-
ctree.h | 2 +-
3 files changed, 3
The backup_chunk_root_level set/get function defined by
BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack.
Signed-off-by: Lu Fengqi
---
cmds-inspect-dump-super.c | 2 +-
ctree.h | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff
On Sun, Jan 07, 2018 at 01:17:19PM +0200, Nikolay Borisov wrote:
> On 6.01.2018 07:10, Adam Borowski wrote:
> > Hi!
> > I got a reproducible infinite hang, reliably triggered by the testsuite of
> > "flatpak"; fails on at least 4.15-rc6, 4.9.75, and on another machine with
> > Debian's 4.14.2-1.
On 2018年01月11日 00:55, Josef Bacik wrote:
> From: Josef Bacik
>
> My delayed refs rsv patches uncovered a problem in
> btrfs_alloc_data_chunk_ondemand where we don't clear ret before
> returning, so we could have whatever left over value we had from trying
> to do a chunk
On 2018年01月10日 23:33, Nikolay Borisov wrote:
>
>
> On 10.01.2018 03:30, Qu Wenruo wrote:
>> That system chunk can be relocated by balance, and in that case new
>> chunk may start beyond 1M.
>>
>> So the most reliable method would be manually checking the the first
>> device extent of this
v6:
Use the changed fn name btrfs_free_stale_devices().
Change in title:
Old v5:
Cover-letter:
[PATCH v5] Add cli and ioctl to ignore a scanned device
Kernel:
[PATCH v5] btrfs: introduce feature to ignore a btrfs device
Progs:
[PATCH v5] btrfs-progs: add 'btrfs device ignore' cli
This patch adds cli
btrfs device forget [dev]
which shall remove the relevant device entries in the kernel
matching the dev. If no argument is given it shall remove all
stale (device which are not mounted) from the kernel.
Signed-off-by: Anand Jain
---
cmds-device.c |
1 - 100 of 158 matches
Mail list logo