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, which
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 +-
1 file changed, 5 insertions(+), 5 delet
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 and
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.
Not
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 tree
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 a
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 re
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 aft
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 v
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
--- a/cmds-check.c
+++ b/cmds
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 gr
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(+)
diff --git a/cmds-check.c b/cmds-check.c
ind
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 r
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
---
cmds-check.c | 10 -
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
--- a/cmds-check.c
+++ b/cm
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 try_to_f
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 insertions(+), 1 deletion(-)
diff
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 beha
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 after
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, Refere
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 valu
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 ---
tests/btrfs/142
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 ---
tests/btrfs/143
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 ---
tests/btrfs/140
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 _f
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 ---
tests/bt
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 a
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 | 2 +-
image/main.c
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 | 2 +-
5 files changed, 7 i
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 deletions(-)
diff --git a/cmds-chec
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 a/ctree.h b/ctree.h
index ab06e66a
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 +-
extent-tree.c | 6 +
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 changed, 7 insertions(+), 6 d
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 | 2 +-
convert/main.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 a49f9dda..7c72b5d6 100644
--- a/ct
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 deletions(-)
diff --git a/btrfs-list.
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 | 2 +-
5 files changed, 12 i
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 | 2 +-
4 files changed, 5 i
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 a/ctree.h b/ctree.h
index b
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 | 2 +-
utils.c| 2 +-
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 insertions(+), 4 deletions(-)
di
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 insertions(+), 3 deletions(-)
diff
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 insertions(+), 3 deletions(-)
d
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 insertions(+), 4 deletions(-)
dif
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 a/ctree.h b/ctree.h
index bce1b0d4
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 insertions(+), 5 deletions(-)
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 a/ctree.h b/ctree.h
index 9dad4928
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 insertions(+), 4 deletions(-)
diff
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 insertions(+), 3 deletions(-)
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 a/btrfs-list.c b/btrfs-list.c
index 5b
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 --git a/cmds-inspect-dump-sup
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 +-
mkfs/main.c| 2 +-
print-tree.c
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 --git a/cmds-inspect-dump-sup
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 --git a/cmds-inspect-dump-
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 | 8
4 files chan
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 insertions(+), 3 deletions(-)
diff --
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 insertions(+), 3 deletions(-)
di
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 --git a/cmds-inspect-dump-super
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 insertions(+), 4 deletions(-)
di
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 ++-
disk-io.c
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 --git a/cmds-inspect-dump-supe
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 | 7 ---
4 files cha
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 | 2 +-
disk-io.c
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 | 8
image/main.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 | 4 ++--
4 files c
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 +++---
4 files changed, 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 | 2 +-
cmds-restore.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 +-
disk-io.c
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 | 2 +-
disk-io.c
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 | 2 +-
mkfs/common.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 | 4 ++--
ctree.h
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 insertions(+), 3 deletions(-)
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 insertions(+), 3 deletions
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| 2 +-
mkfs/main.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 | 2 +-
ctree.h
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 a/cmds-inspect-dump-super.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 +-
cmds-inspect-dump-super.c | 4 ++--
ctree.h
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 | 2 +-
ctree.h
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
mkfs/common.c
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 | 2 +-
disk-io.c
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 | 4 ++--
disk-io.c
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 | 6 +++---
image/main.c
The super_stripesize 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 | 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 | 2 +-
image/main.
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 atta
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 insertions(+), 3 deletions(-)
diff --g
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 | 2 +-
disk-io.c
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 | 3 ++-
image/main
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| 2 +-
extent-tree.c
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 +-
cmds-inspect-dump-super.c | 2 +-
cmds-rescue.c
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 | 2 +-
ctree.h
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 insertions(+), 4 deletions(-)
d
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 insertions(+), 3 deletions(-)
diff
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 --git a/cmds-inspect-dump-s
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 ---
ctree.c|
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 allocation or whatever
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 devic
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
v5:
1 - 100 of 162 matches
Mail list logo