public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: convert: follow default v2 cache setting
@ 2023-03-22 10:27 Qu Wenruo
  2023-03-22 10:27 ` [PATCH 1/2] btrfs-progs: make check/clear-cache.c to be separate from check/main.c Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Qu Wenruo @ 2023-03-22 10:27 UTC (permalink / raw)
  To: linux-btrfs

Although btrfs-convert has followed the new default setting in v5.15
release, it doesn't work.

The problem is the convert workflow itself (making an temporary btrfs
first, then sync the inodes) doesn't really create the free space tree
nor the needed super block flags.

And during the inodes sync phase, we generate v1 cache, causing the
result btrfs to be v1 cache populated, and cause test case failure for
subpage testing.


This patchset would fix the converted btrfs at the final stage, by
clearing the existing v1 cache first, then create and populate a valid
free space tree, with needed super block flags.


There seems to be a behavior change in mkfs.ext4 (e2fsprogs 1.47),
that would create an orphan inode (with fixed ino number 12), and
btrfs-convert would follow the ext4 to create an orphan in btrfs too,
causing btrfs check to complain.

So for now, I can not do convert testing due to the newly updated
e2fsprogs...

Qu Wenruo (2):
  btrfs-progs: make check/clear-cache.c to be separate from check/main.c
  btrfs-progs: convert: follow the default free space tree setting

 Makefile            |  2 +-
 check/clear-cache.c | 84 ++++++++++++++++++++++++---------------------
 check/clear-cache.h |  8 +++--
 check/main.c        |  6 ++--
 convert/main.c      | 23 +++++++++++++
 5 files changed, 76 insertions(+), 47 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-05-02  0:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-22 10:27 [PATCH 0/2] btrfs-progs: convert: follow default v2 cache setting Qu Wenruo
2023-03-22 10:27 ` [PATCH 1/2] btrfs-progs: make check/clear-cache.c to be separate from check/main.c Qu Wenruo
2023-03-23 19:03   ` David Sterba
2023-03-24  0:39     ` Qu Wenruo
2023-05-02  0:34       ` Qu Wenruo
2023-03-22 10:27 ` [PATCH 2/2] btrfs-progs: convert: follow the default free space tree setting Qu Wenruo
2023-03-22 12:13 ` [PATCH 0/2] btrfs-progs: convert: follow default v2 cache setting Neal Gompa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox