linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH v1 0/1] generic/018: do not run the test if a compressed filesystem is used
@ 2025-06-20  8:29 Jan Prusakowski via Linux-f2fs-devel
  2025-06-20  8:29 ` [f2fs-dev] [PATCH v1 1/1] " Jan Prusakowski via Linux-f2fs-devel
  2025-06-20 14:28 ` [f2fs-dev] [PATCH v1 0/1] " Zorro Lang via Linux-f2fs-devel
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Prusakowski via Linux-f2fs-devel @ 2025-06-20  8:29 UTC (permalink / raw)
  To: Zorro Lang, Chao Yu, fstests; +Cc: jaegeuk, Jan Prusakowski, linux-f2fs-devel

Hi,

We're testing F2FS internally and when we use a compressed file system we
see the test generic/018 fail consistently. It looks like this is due to
fiemap not supporting compressed extents correctly:

    [...]
    defrag /vdc/fragfile.9981 in region[0, 40960]
    /vdc/fragfile.9981:
        0: [0..31]: 2682968..2682999
        1: [32..63]: 2682976..2683007
        2: [64..79]: 2682984..2682999
    Failed to adequately defragment file

We'd like to disable the test when the file system uses compression. Please
check the following patch.

Please let me know your thoughts on this.

Kind regards,
Jan


Jan Prusakowski (1):
  generic/018: do not run the test if a compressed filesystem is used

 tests/generic/018 | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.50.0.rc2.701.gf1e915cc24-goog



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

* [f2fs-dev] [PATCH v1 1/1] generic/018: do not run the test if a compressed filesystem is used
  2025-06-20  8:29 [f2fs-dev] [PATCH v1 0/1] generic/018: do not run the test if a compressed filesystem is used Jan Prusakowski via Linux-f2fs-devel
@ 2025-06-20  8:29 ` Jan Prusakowski via Linux-f2fs-devel
  2025-06-20 14:28 ` [f2fs-dev] [PATCH v1 0/1] " Zorro Lang via Linux-f2fs-devel
  1 sibling, 0 replies; 4+ messages in thread
From: Jan Prusakowski via Linux-f2fs-devel @ 2025-06-20  8:29 UTC (permalink / raw)
  To: Zorro Lang, Chao Yu, fstests; +Cc: jaegeuk, Jan Prusakowski, linux-f2fs-devel

fiemap does not support compressed extents correctly and the defragmentation
check fails.

Signed-off-by: Jan Prusakowski <jprusakowski@google.com>
---
 tests/generic/018 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/generic/018 b/tests/generic/018
index 501960d7..52b48dca 100755
--- a/tests/generic/018
+++ b/tests/generic/018
@@ -13,6 +13,8 @@ _begin_fstest auto fsr quick defrag
 . ./common/filter
 . ./common/defrag
 
+# Fiemap doesn't work well with compressed extents
+_require_no_compress
 
 # We require scratch so that we'll have free contiguous space
 _require_scratch
-- 
2.50.0.rc2.701.gf1e915cc24-goog



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

* Re: [f2fs-dev] [PATCH v1 0/1] generic/018: do not run the test if a compressed filesystem is used
  2025-06-20  8:29 [f2fs-dev] [PATCH v1 0/1] generic/018: do not run the test if a compressed filesystem is used Jan Prusakowski via Linux-f2fs-devel
  2025-06-20  8:29 ` [f2fs-dev] [PATCH v1 1/1] " Jan Prusakowski via Linux-f2fs-devel
@ 2025-06-20 14:28 ` Zorro Lang via Linux-f2fs-devel
  2025-06-30 19:58   ` Jan Prusakowski via Linux-f2fs-devel
  1 sibling, 1 reply; 4+ messages in thread
From: Zorro Lang via Linux-f2fs-devel @ 2025-06-20 14:28 UTC (permalink / raw)
  To: Jan Prusakowski; +Cc: jaegeuk, Zorro Lang, fstests, linux-f2fs-devel

On Fri, Jun 20, 2025 at 08:29:05AM +0000, Jan Prusakowski wrote:
> Hi,
> 
> We're testing F2FS internally and when we use a compressed file system we

I saw you used _require_no_compress in your patch, but this function only supports
btrfs checking currently. How do you avoid your test failure on F2FS?

And there're many fiemap related test cases, will they all fail on compressed fs?

Thanks,
Zorro

> see the test generic/018 fail consistently. It looks like this is due to
> fiemap not supporting compressed extents correctly:
> 
>     [...]
>     defrag /vdc/fragfile.9981 in region[0, 40960]
>     /vdc/fragfile.9981:
>         0: [0..31]: 2682968..2682999
>         1: [32..63]: 2682976..2683007
>         2: [64..79]: 2682984..2682999
>     Failed to adequately defragment file
> 
> We'd like to disable the test when the file system uses compression. Please
> check the following patch.
> 
> Please let me know your thoughts on this.
> 
> Kind regards,
> Jan
> 
> 
> Jan Prusakowski (1):
>   generic/018: do not run the test if a compressed filesystem is used
> 
>  tests/generic/018 | 2 ++
>  1 file changed, 2 insertions(+)
> 
> -- 
> 2.50.0.rc2.701.gf1e915cc24-goog
> 
> 



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

* Re: [f2fs-dev] [PATCH v1 0/1] generic/018: do not run the test if a compressed filesystem is used
  2025-06-20 14:28 ` [f2fs-dev] [PATCH v1 0/1] " Zorro Lang via Linux-f2fs-devel
@ 2025-06-30 19:58   ` Jan Prusakowski via Linux-f2fs-devel
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Prusakowski via Linux-f2fs-devel @ 2025-06-30 19:58 UTC (permalink / raw)
  To: Zorro Lang; +Cc: jaegeuk, Zorro Lang, fstests, linux-f2fs-devel

On Fri, Jun 20, 2025 at 4:28 PM Zorro Lang <zlang@redhat.com> wrote:
>
> I saw you used _require_no_compress in your patch, but this function only supports
> btrfs checking currently. How do you avoid your test failure on F2FS?

Hi Zorro,

You're right - that patch won't work as I intended. Thanks for taking the time
to review it. We've done some more checks and it looks like our initial
suspicion was wrong and we'll need a kernel fix to address the problems with the
test.

Thanks again!
Jan


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

end of thread, other threads:[~2025-06-30 19:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20  8:29 [f2fs-dev] [PATCH v1 0/1] generic/018: do not run the test if a compressed filesystem is used Jan Prusakowski via Linux-f2fs-devel
2025-06-20  8:29 ` [f2fs-dev] [PATCH v1 1/1] " Jan Prusakowski via Linux-f2fs-devel
2025-06-20 14:28 ` [f2fs-dev] [PATCH v1 0/1] " Zorro Lang via Linux-f2fs-devel
2025-06-30 19:58   ` Jan Prusakowski via Linux-f2fs-devel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).