All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL REQUEST] btrfs-progs: For next merge window
@ 2019-10-10  8:59 Qu Wenruo
  2019-10-10 16:17 ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2019-10-10  8:59 UTC (permalink / raw)
  To: linux-btrfs, dsterba

This patchset can be fetched from github:
https://github.com/adam900710/btrfs-progs/tree/for_next
Which is based on devel branch, with the following HEAD:

commit d928fcabc8aed32b5ccab71220abcff9bffac377 (david/devel)
Author: David Sterba <dsterba@suse.com>
Date:   Mon Oct 7 18:23:52 2019 +0200

    btrfs-progs: add BLAKE2 to hash-speedtest

Please note that, for some binary test images, the patch from patchwork
doesn't apply correctly and would cause empty files. Not sure if it's
abug of patchwork.

This patchset contains the following changes:

- image
  * Proper error message for chunk tree build
  * Fix error message for restore
  * Reduce memory usage for compressed image restore
  * Speed up chunk tree build for restore

- check
  * check and repair bad inode mode in subvolume trees
  * check and repair inode generation

- receive
  * Fix receiving clone from duplicate subvolume

- tests
  * Check kernel and btrfs-progs support for zstd for zstd related tests

For receive and tests part, they are just unmerged patches.

For image, most of the patches from the btrfs-image data dump patchset,
but they are independent from data dump. So they are included in this batch.

For check, those patches are just result of user reports triggered by
tree-checker, all include report and repair functionality and test images.

The following selftests pass (with my tsukkomi):

- fsck
  The fastest test, and everyone loves fast tests.

- mkfs
  Ordinary but good tests.

- convert
  Slow and boring. But A good test of one's patience.

- misc
  The most thrilling tests. No one notices a regression until this test
  fails.

- fuzz
  It can always catch you unexpectedly.

Johannes Thumshirn (1):
  btrfs-progs: fix zstd compression test on a kernel without ztsd
    support

Omar Sandoval (3):
  btrfs-progs: receive: remove commented out transid checks
  btrfs-progs: receive: don't lookup clone root for received subvolume
  btrfs-progs: tests: add test for receiving clone from duplicate
    subvolume

Qu Wenruo (15):
  btrfs-progs: image: Output error message for chunk tree build error
  btrfs-progs: image: Fix error output to show correct return value
  btrfs-progs: image: Don't waste memory when we're just extracting
    super block
  btrfs-progs: image: Allow restore to record system chunk ranges for
    later usage
  btrfs-progs: image: Introduce helper to determine if a tree block is
    in the range of system chunks
  btrfs-progs: image: Rework how we search chunk tree blocks
  btrfs-progs: check: Export btrfs_type_to_imode
  btrfs-progs: check/common: Introduce a function to find imode using
    info from INODE_REF item
  btrfs-progs: check/common: Make repair_imode_common() to handle inodes
    in subvolume trees
  btrfs-progs: check/lowmem: Repair bad imode early
  btrfs-progs: check/original: Fix inode mode in subvolume trees
  btrfs-progs: tests/fsck: Add new images for inode mode repair
    functionality
  btrfs-progs: check/lowmem: Add check and repair for invalid inode
    generation
  btrfs-progs: check/original: Add check and repair for invalid inode
    generation
  btrfs-progs: fsck-tests: Add test image for invalid inode generation
    repair

 check/main.c                                  | 104 +++--
 check/mode-common.c                           | 262 +++++++++++-
 check/mode-common.h                           |  17 +
 check/mode-lowmem.c                           | 115 ++++++
 check/mode-original.h                         |   1 +
 cmds/receive.c                                |  43 +-
 image/main.c                                  | 382 +++++++++++++-----
 .../039-bad-inode-mode/.lowmem_repairable     |   0
 .../bad_free_space_cache_imode.raw.xz}        | Bin
 .../bad_imodes_in_subvolume_tree.img.xz       | Bin 0 -> 2956 bytes
 .../.lowmem_repairable                        |   0
 .../bad_inode_geneartion.img.xz               | Bin 0 -> 2012 bytes
 tests/misc-tests/025-zstd-compression/test.sh |  10 +
 .../test.sh                                   |  34 ++
 14 files changed, 790 insertions(+), 178 deletions(-)
 create mode 100644 tests/fsck-tests/039-bad-inode-mode/.lowmem_repairable
 rename tests/fsck-tests/{039-bad-free-space-cache-inode-mode/test.raw.xz => 039-bad-inode-mode/bad_free_space_cache_imode.raw.xz} (100%)
 create mode 100644 tests/fsck-tests/039-bad-inode-mode/bad_imodes_in_subvolume_tree.img.xz
 create mode 100644 tests/fsck-tests/043-bad-inode-generation/.lowmem_repairable
 create mode 100644 tests/fsck-tests/043-bad-inode-generation/bad_inode_geneartion.img.xz
 create mode 100755 tests/misc-tests/038-receive-clone-from-current-subvolume/test.sh

-- 
2.23.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PULL REQUEST] btrfs-progs: For next merge window
  2019-10-10  8:59 [PULL REQUEST] btrfs-progs: For next merge window Qu Wenruo
@ 2019-10-10 16:17 ` David Sterba
  2019-10-11  2:07   ` Qu Wenruo
  0 siblings, 1 reply; 4+ messages in thread
From: David Sterba @ 2019-10-10 16:17 UTC (permalink / raw)
  To: Qu Wenruo; +Cc: linux-btrfs, dsterba

On Thu, Oct 10, 2019 at 04:59:32PM +0800, Qu Wenruo wrote:
> This patchset can be fetched from github:
> https://github.com/adam900710/btrfs-progs/tree/for_next
> Which is based on devel branch, with the following HEAD:

Thanks for putting the branch together, I've been too busy with kernel
work so progs are lagging behind constantly.

The current devel branch is almost ready for a release, some patches
will be moved to 5.4 but I'm planning to do release by tomorrow. I can
pull your branch as-is to 5.4 so we have time to fix any problems.

> commit d928fcabc8aed32b5ccab71220abcff9bffac377 (david/devel)
> Author: David Sterba <dsterba@suse.com>
> Date:   Mon Oct 7 18:23:52 2019 +0200
> 
>     btrfs-progs: add BLAKE2 to hash-speedtest
> 
> Please note that, for some binary test images, the patch from patchwork
> doesn't apply correctly and would cause empty files. Not sure if it's
> abug of patchwork.

I'm applying patches from my mailbox, I know that patchwork used to
misapply patches eg. when fragments of a diff were in the changelog so
I'm cautious in such cases. Thanks for letting us know anyway.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PULL REQUEST] btrfs-progs: For next merge window
  2019-10-10 16:17 ` David Sterba
@ 2019-10-11  2:07   ` Qu Wenruo
  2019-10-21 14:55     ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2019-10-11  2:07 UTC (permalink / raw)
  To: dsterba, Qu Wenruo, linux-btrfs


[-- Attachment #1.1: Type: text/plain, Size: 1345 bytes --]



On 2019/10/11 上午12:17, David Sterba wrote:
> On Thu, Oct 10, 2019 at 04:59:32PM +0800, Qu Wenruo wrote:
>> This patchset can be fetched from github:
>> https://github.com/adam900710/btrfs-progs/tree/for_next
>> Which is based on devel branch, with the following HEAD:
> 
> Thanks for putting the branch together, I've been too busy with kernel
> work so progs are lagging behind constantly.
> 
> The current devel branch is almost ready for a release, some patches
> will be moved to 5.4 but I'm planning to do release by tomorrow. I can
> pull your branch as-is to 5.4 so we have time to fix any problems.

No problem at all.
Since I don't expect this pull get merged in the next release either.

Thanks,
Qu

> 
>> commit d928fcabc8aed32b5ccab71220abcff9bffac377 (david/devel)
>> Author: David Sterba <dsterba@suse.com>
>> Date:   Mon Oct 7 18:23:52 2019 +0200
>>
>>     btrfs-progs: add BLAKE2 to hash-speedtest
>>
>> Please note that, for some binary test images, the patch from patchwork
>> doesn't apply correctly and would cause empty files. Not sure if it's
>> abug of patchwork.
> 
> I'm applying patches from my mailbox, I know that patchwork used to
> misapply patches eg. when fragments of a diff were in the changelog so
> I'm cautious in such cases. Thanks for letting us know anyway.
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PULL REQUEST] btrfs-progs: For next merge window
  2019-10-11  2:07   ` Qu Wenruo
@ 2019-10-21 14:55     ` David Sterba
  0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2019-10-21 14:55 UTC (permalink / raw)
  To: Qu Wenruo; +Cc: dsterba, Qu Wenruo, linux-btrfs

On Fri, Oct 11, 2019 at 10:07:16AM +0800, Qu Wenruo wrote:
> 
> 
> On 2019/10/11 上午12:17, David Sterba wrote:
> > On Thu, Oct 10, 2019 at 04:59:32PM +0800, Qu Wenruo wrote:
> >> This patchset can be fetched from github:
> >> https://github.com/adam900710/btrfs-progs/tree/for_next
> >> Which is based on devel branch, with the following HEAD:
> > 
> > Thanks for putting the branch together, I've been too busy with kernel
> > work so progs are lagging behind constantly.
> > 
> > The current devel branch is almost ready for a release, some patches
> > will be moved to 5.4 but I'm planning to do release by tomorrow. I can
> > pull your branch as-is to 5.4 so we have time to fix any problems.
> 
> No problem at all.
> Since I don't expect this pull get merged in the next release either.

I had to rebase the branch, all patches from you (image, check) are now
in devel. I did some fixups (error messages, coding style, changelogs)
on the way.

Next will be the patchset from Omar. The fix from Johanness regarding
zstd needs to be reworked so I'll drop it for now.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-21 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10  8:59 [PULL REQUEST] btrfs-progs: For next merge window Qu Wenruo
2019-10-10 16:17 ` David Sterba
2019-10-11  2:07   ` Qu Wenruo
2019-10-21 14:55     ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.