All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] generic/735: disable for f2fs
@ 2025-12-18  7:17 ` Joanne Chang via Linux-f2fs-devel
  0 siblings, 0 replies; 14+ messages in thread
From: Joanne Chang @ 2025-12-18  7:17 UTC (permalink / raw)
  To: Zorro Lang, fstests; +Cc: Jaegeuk Kim, linux-f2fs-devel, Chao Yu, Joanne Chang

generic/735 attempts to create a file with nearly 2^32 blocks. However,
the maximum block count per file in F2FS is limited by the capacity of
the inode. This limit is roughly 2^30 blocks, which is significantly
lower than the test's requirement.

Signed-off-by: Joanne Chang <joannechien@google.com>
---
 tests/generic/735 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/generic/735 b/tests/generic/735
index 9bbdf3a1..d5ba5673 100755
--- a/tests/generic/735
+++ b/tests/generic/735
@@ -19,6 +19,9 @@ if [[ "$FSTYP" =~ ext[0-9]+ ]]; then
 	_fixed_by_kernel_commit 2dcf5fde6dff "ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS"
 fi
 
+# Block number 0xffffffff is too big for a file in f2fs.
+_exclude_fs f2fs
+
 _require_odirect
 _require_xfs_io_command "falloc"
 _require_xfs_io_command "finsert"
-- 
2.52.0.313.g674ac2bdf7-goog


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

* [f2fs-dev] [PATCH v1] generic/735: disable for f2fs
@ 2025-12-18  7:17 ` Joanne Chang via Linux-f2fs-devel
  0 siblings, 0 replies; 14+ messages in thread
From: Joanne Chang via Linux-f2fs-devel @ 2025-12-18  7:17 UTC (permalink / raw)
  To: Zorro Lang, fstests; +Cc: Joanne Chang, Jaegeuk Kim, linux-f2fs-devel

generic/735 attempts to create a file with nearly 2^32 blocks. However,
the maximum block count per file in F2FS is limited by the capacity of
the inode. This limit is roughly 2^30 blocks, which is significantly
lower than the test's requirement.

Signed-off-by: Joanne Chang <joannechien@google.com>
---
 tests/generic/735 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/generic/735 b/tests/generic/735
index 9bbdf3a1..d5ba5673 100755
--- a/tests/generic/735
+++ b/tests/generic/735
@@ -19,6 +19,9 @@ if [[ "$FSTYP" =~ ext[0-9]+ ]]; then
 	_fixed_by_kernel_commit 2dcf5fde6dff "ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS"
 fi
 
+# Block number 0xffffffff is too big for a file in f2fs.
+_exclude_fs f2fs
+
 _require_odirect
 _require_xfs_io_command "falloc"
 _require_xfs_io_command "finsert"
-- 
2.52.0.313.g674ac2bdf7-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] 14+ messages in thread

* Re: [PATCH v1] generic/735: disable for f2fs
  2025-12-18  7:17 ` [f2fs-dev] " Joanne Chang via Linux-f2fs-devel
@ 2025-12-18  7:33   ` Christoph Hellwig
  -1 siblings, 0 replies; 14+ messages in thread
From: Christoph Hellwig @ 2025-12-18  7:33 UTC (permalink / raw)
  To: Joanne Chang; +Cc: Zorro Lang, fstests, Jaegeuk Kim, linux-f2fs-devel, Chao Yu

On Thu, Dec 18, 2025 at 07:17:17AM +0000, Joanne Chang wrote:
> generic/735 attempts to create a file with nearly 2^32 blocks. However,
> the maximum block count per file in F2FS is limited by the capacity of
> the inode. This limit is roughly 2^30 blocks, which is significantly
> lower than the test's requirement.
> 
> Signed-off-by: Joanne Chang <joannechien@google.com>
> ---
>  tests/generic/735 | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tests/generic/735 b/tests/generic/735
> index 9bbdf3a1..d5ba5673 100755
> --- a/tests/generic/735
> +++ b/tests/generic/735
> @@ -19,6 +19,9 @@ if [[ "$FSTYP" =~ ext[0-9]+ ]]; then
>  	_fixed_by_kernel_commit 2dcf5fde6dff "ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS"
>  fi
>  
> +# Block number 0xffffffff is too big for a file in f2fs.
> +_exclude_fs f2fs

Please don't add random file system excludes.  This should be
abstracted into a _require_max_file_size helper or similar.


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

* Re: [f2fs-dev] [PATCH v1] generic/735: disable for f2fs
@ 2025-12-18  7:33   ` Christoph Hellwig
  0 siblings, 0 replies; 14+ messages in thread
From: Christoph Hellwig @ 2025-12-18  7:33 UTC (permalink / raw)
  To: Joanne Chang; +Cc: Jaegeuk Kim, Zorro Lang, fstests, linux-f2fs-devel

On Thu, Dec 18, 2025 at 07:17:17AM +0000, Joanne Chang wrote:
> generic/735 attempts to create a file with nearly 2^32 blocks. However,
> the maximum block count per file in F2FS is limited by the capacity of
> the inode. This limit is roughly 2^30 blocks, which is significantly
> lower than the test's requirement.
> 
> Signed-off-by: Joanne Chang <joannechien@google.com>
> ---
>  tests/generic/735 | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tests/generic/735 b/tests/generic/735
> index 9bbdf3a1..d5ba5673 100755
> --- a/tests/generic/735
> +++ b/tests/generic/735
> @@ -19,6 +19,9 @@ if [[ "$FSTYP" =~ ext[0-9]+ ]]; then
>  	_fixed_by_kernel_commit 2dcf5fde6dff "ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS"
>  fi
>  
> +# Block number 0xffffffff is too big for a file in f2fs.
> +_exclude_fs f2fs

Please don't add random file system excludes.  This should be
abstracted into a _require_max_file_size helper or similar.



_______________________________________________
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] 14+ messages in thread

* Re: [PATCH v1] generic/735: disable for f2fs
  2025-12-18  7:33   ` [f2fs-dev] " Christoph Hellwig
@ 2025-12-18 12:02     ` Joanne Chang via Linux-f2fs-devel
  -1 siblings, 0 replies; 14+ messages in thread
From: Joanne Chang @ 2025-12-18 12:02 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Zorro Lang, fstests, Jaegeuk Kim, linux-f2fs-devel, Chao Yu

On Thu, Dec 18, 2025 at 3:33 PM Christoph Hellwig <hch@infradead.org> wrote:
> On Thu, Dec 18, 2025 at 07:17:17AM +0000, Joanne Chang wrote:
> > generic/735 attempts to create a file with nearly 2^32 blocks. However,
> > the maximum block count per file in F2FS is limited by the capacity of
> > the inode. This limit is roughly 2^30 blocks, which is significantly
> > lower than the test's requirement.
> >
> > Signed-off-by: Joanne Chang <joannechien@google.com>
> > ---
> >  tests/generic/735 | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/tests/generic/735 b/tests/generic/735
> > index 9bbdf3a1..d5ba5673 100755
> > --- a/tests/generic/735
> > +++ b/tests/generic/735
> > @@ -19,6 +19,9 @@ if [[ "$FSTYP" =~ ext[0-9]+ ]]; then
> >       _fixed_by_kernel_commit 2dcf5fde6dff "ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS"
> >  fi
> >
> > +# Block number 0xffffffff is too big for a file in f2fs.
> > +_exclude_fs f2fs
>
> Please don't add random file system excludes.  This should be
> abstracted into a _require_max_file_size helper or similar.

Thank you for the feedback. I will implement a
_require_blocks_in_file helper in the next version. As far as I
know, there isn't a generic way to query the block number limit
across filesystems, so I plan to hardcode the known limit for
F2FS within the helper for now.

Please let me know if you have any further suggestions.

Best regards,
Joanne

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

* Re: [f2fs-dev] [PATCH v1] generic/735: disable for f2fs
@ 2025-12-18 12:02     ` Joanne Chang via Linux-f2fs-devel
  0 siblings, 0 replies; 14+ messages in thread
From: Joanne Chang via Linux-f2fs-devel @ 2025-12-18 12:02 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Jaegeuk Kim, Zorro Lang, fstests, linux-f2fs-devel

On Thu, Dec 18, 2025 at 3:33 PM Christoph Hellwig <hch@infradead.org> wrote:
> On Thu, Dec 18, 2025 at 07:17:17AM +0000, Joanne Chang wrote:
> > generic/735 attempts to create a file with nearly 2^32 blocks. However,
> > the maximum block count per file in F2FS is limited by the capacity of
> > the inode. This limit is roughly 2^30 blocks, which is significantly
> > lower than the test's requirement.
> >
> > Signed-off-by: Joanne Chang <joannechien@google.com>
> > ---
> >  tests/generic/735 | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/tests/generic/735 b/tests/generic/735
> > index 9bbdf3a1..d5ba5673 100755
> > --- a/tests/generic/735
> > +++ b/tests/generic/735
> > @@ -19,6 +19,9 @@ if [[ "$FSTYP" =~ ext[0-9]+ ]]; then
> >       _fixed_by_kernel_commit 2dcf5fde6dff "ext4: prevent the normalized size from exceeding EXT_MAX_BLOCKS"
> >  fi
> >
> > +# Block number 0xffffffff is too big for a file in f2fs.
> > +_exclude_fs f2fs
>
> Please don't add random file system excludes.  This should be
> abstracted into a _require_max_file_size helper or similar.

Thank you for the feedback. I will implement a
_require_blocks_in_file helper in the next version. As far as I
know, there isn't a generic way to query the block number limit
across filesystems, so I plan to hardcode the known limit for
F2FS within the helper for now.

Please let me know if you have any further suggestions.

Best regards,
Joanne


_______________________________________________
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] 14+ messages in thread

* Re: [PATCH v1] generic/735: disable for f2fs
  2025-12-18 12:02     ` [f2fs-dev] " Joanne Chang via Linux-f2fs-devel
@ 2025-12-19  5:30       ` Christoph Hellwig
  -1 siblings, 0 replies; 14+ messages in thread
From: Christoph Hellwig @ 2025-12-19  5:30 UTC (permalink / raw)
  To: Joanne Chang
  Cc: Christoph Hellwig, Zorro Lang, fstests, Jaegeuk Kim,
	linux-f2fs-devel, Chao Yu, linux-fsdevel

On Thu, Dec 18, 2025 at 08:02:48PM +0800, Joanne Chang wrote:
> Thank you for the feedback. I will implement a
> _require_blocks_in_file helper in the next version. As far as I
> know, there isn't a generic way to query the block number limit
> across filesystems, so I plan to hardcode the known limit for
> F2FS within the helper for now.

Oh, the limits is not the file size per se, so the number of blocks?
I.e. you can have a 64-bit i_size, but if the file isn't spare it
eventually can't fill holes?  That really does seem like behavior
applications would not not expect, aka a bug.


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

* Re: [f2fs-dev] [PATCH v1] generic/735: disable for f2fs
@ 2025-12-19  5:30       ` Christoph Hellwig
  0 siblings, 0 replies; 14+ messages in thread
From: Christoph Hellwig @ 2025-12-19  5:30 UTC (permalink / raw)
  To: Joanne Chang
  Cc: Zorro Lang, fstests, linux-f2fs-devel, Christoph Hellwig,
	linux-fsdevel, Jaegeuk Kim

On Thu, Dec 18, 2025 at 08:02:48PM +0800, Joanne Chang wrote:
> Thank you for the feedback. I will implement a
> _require_blocks_in_file helper in the next version. As far as I
> know, there isn't a generic way to query the block number limit
> across filesystems, so I plan to hardcode the known limit for
> F2FS within the helper for now.

Oh, the limits is not the file size per se, so the number of blocks?
I.e. you can have a 64-bit i_size, but if the file isn't spare it
eventually can't fill holes?  That really does seem like behavior
applications would not not expect, aka a bug.



_______________________________________________
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] 14+ messages in thread

* Re: [PATCH v1] generic/735: disable for f2fs
  2025-12-19  5:30       ` [f2fs-dev] " Christoph Hellwig
@ 2025-12-19  8:53         ` Joanne Chang via Linux-f2fs-devel
  -1 siblings, 0 replies; 14+ messages in thread
From: Joanne Chang @ 2025-12-19  8:53 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Zorro Lang, fstests, Jaegeuk Kim, linux-f2fs-devel, Chao Yu,
	linux-fsdevel

On Fri, Dec 19, 2025 at 1:30 PM Christoph Hellwig <hch@infradead.org> wrote:
> On Thu, Dec 18, 2025 at 08:02:48PM +0800, Joanne Chang wrote:
> > Thank you for the feedback. I will implement a
> > _require_blocks_in_file helper in the next version. As far as I
> > know, there isn't a generic way to query the block number limit
> > across filesystems, so I plan to hardcode the known limit for
> > F2FS within the helper for now.
>
> Oh, the limits is not the file size per se, so the number of blocks?
> I.e. you can have a 64-bit i_size, but if the file isn't spare it
> eventually can't fill holes?  That really does seem like behavior
> applications would not not expect, aka a bug.

Thanks for the reply. To clarify, I meant testing the architectural
limit of blocks per file, not the current free blocks. Sorry for any
confusion in my previous reply.

The limit is indeed the maximum file size. However, since both the F2FS
file size limit and the test's requirements are calculated as
(block_number * block_size), I believe it is simpler to just test the
block number.

Best regards,
Joanne

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

* Re: [f2fs-dev] [PATCH v1] generic/735: disable for f2fs
@ 2025-12-19  8:53         ` Joanne Chang via Linux-f2fs-devel
  0 siblings, 0 replies; 14+ messages in thread
From: Joanne Chang via Linux-f2fs-devel @ 2025-12-19  8:53 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Zorro Lang, fstests, linux-f2fs-devel, linux-fsdevel, Jaegeuk Kim

On Fri, Dec 19, 2025 at 1:30 PM Christoph Hellwig <hch@infradead.org> wrote:
> On Thu, Dec 18, 2025 at 08:02:48PM +0800, Joanne Chang wrote:
> > Thank you for the feedback. I will implement a
> > _require_blocks_in_file helper in the next version. As far as I
> > know, there isn't a generic way to query the block number limit
> > across filesystems, so I plan to hardcode the known limit for
> > F2FS within the helper for now.
>
> Oh, the limits is not the file size per se, so the number of blocks?
> I.e. you can have a 64-bit i_size, but if the file isn't spare it
> eventually can't fill holes?  That really does seem like behavior
> applications would not not expect, aka a bug.

Thanks for the reply. To clarify, I meant testing the architectural
limit of blocks per file, not the current free blocks. Sorry for any
confusion in my previous reply.

The limit is indeed the maximum file size. However, since both the F2FS
file size limit and the test's requirements are calculated as
(block_number * block_size), I believe it is simpler to just test the
block number.

Best regards,
Joanne


_______________________________________________
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] 14+ messages in thread

* Re: [PATCH v1] generic/735: disable for f2fs
  2025-12-19  8:53         ` [f2fs-dev] " Joanne Chang via Linux-f2fs-devel
@ 2025-12-19 11:10           ` Christoph Hellwig
  -1 siblings, 0 replies; 14+ messages in thread
From: Christoph Hellwig @ 2025-12-19 11:10 UTC (permalink / raw)
  To: Joanne Chang
  Cc: Christoph Hellwig, Zorro Lang, fstests, Jaegeuk Kim,
	linux-f2fs-devel, Chao Yu, linux-fsdevel

On Fri, Dec 19, 2025 at 04:53:04PM +0800, Joanne Chang wrote:
> Thanks for the reply. To clarify, I meant testing the architectural
> limit of blocks per file, not the current free blocks. Sorry for any
> confusion in my previous reply.
> 
> The limit is indeed the maximum file size. However, since both the F2FS
> file size limit and the test's requirements are calculated as
> (block_number * block_size), I believe it is simpler to just test the
> block number.

Well, for the file size you can test by doing a truncate to the expected
size and _notrun if not supported.  I can't really think of a way that
easy to directly check for the number of supported blocks.


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

* Re: [f2fs-dev] [PATCH v1] generic/735: disable for f2fs
@ 2025-12-19 11:10           ` Christoph Hellwig
  0 siblings, 0 replies; 14+ messages in thread
From: Christoph Hellwig @ 2025-12-19 11:10 UTC (permalink / raw)
  To: Joanne Chang
  Cc: Zorro Lang, fstests, linux-f2fs-devel, Christoph Hellwig,
	linux-fsdevel, Jaegeuk Kim

On Fri, Dec 19, 2025 at 04:53:04PM +0800, Joanne Chang wrote:
> Thanks for the reply. To clarify, I meant testing the architectural
> limit of blocks per file, not the current free blocks. Sorry for any
> confusion in my previous reply.
> 
> The limit is indeed the maximum file size. However, since both the F2FS
> file size limit and the test's requirements are calculated as
> (block_number * block_size), I believe it is simpler to just test the
> block number.

Well, for the file size you can test by doing a truncate to the expected
size and _notrun if not supported.  I can't really think of a way that
easy to directly check for the number of supported blocks.



_______________________________________________
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] 14+ messages in thread

* Re: [PATCH v1] generic/735: disable for f2fs
  2025-12-19 11:10           ` [f2fs-dev] " Christoph Hellwig
@ 2025-12-22  2:48             ` Joanne Chang via Linux-f2fs-devel
  -1 siblings, 0 replies; 14+ messages in thread
From: Joanne Chang @ 2025-12-22  2:48 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Zorro Lang, fstests, Jaegeuk Kim, linux-f2fs-devel, Chao Yu,
	linux-fsdevel

On Fri, Dec 19, 2025 at 7:10 PM Christoph Hellwig <hch@infradead.org> wrote:
> Well, for the file size you can test by doing a truncate to the expected
> size and _notrun if not supported.  I can't really think of a way that
> easy to directly check for the number of supported blocks.

I guess we can calculate the block limit by _get_max_file_size() /
block_size. However, I am concerned whether this method might mask a
regression that reduces a filesystem's supported file size. So I
wonder if explicit, hardcoded limits within the helper for known
architectural constraints (like for F2FS) would be safer, as we can
ensure tests are only skipped when the limitation is intended.

Please let me know if you have suggestions for either method.

Best regards,
Joanne

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

* Re: [f2fs-dev] [PATCH v1] generic/735: disable for f2fs
@ 2025-12-22  2:48             ` Joanne Chang via Linux-f2fs-devel
  0 siblings, 0 replies; 14+ messages in thread
From: Joanne Chang via Linux-f2fs-devel @ 2025-12-22  2:48 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Zorro Lang, fstests, linux-f2fs-devel, linux-fsdevel, Jaegeuk Kim

On Fri, Dec 19, 2025 at 7:10 PM Christoph Hellwig <hch@infradead.org> wrote:
> Well, for the file size you can test by doing a truncate to the expected
> size and _notrun if not supported.  I can't really think of a way that
> easy to directly check for the number of supported blocks.

I guess we can calculate the block limit by _get_max_file_size() /
block_size. However, I am concerned whether this method might mask a
regression that reduces a filesystem's supported file size. So I
wonder if explicit, hardcoded limits within the helper for known
architectural constraints (like for F2FS) would be safer, as we can
ensure tests are only skipped when the limitation is intended.

Please let me know if you have suggestions for either method.

Best regards,
Joanne


_______________________________________________
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] 14+ messages in thread

end of thread, other threads:[~2025-12-22  2:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18  7:17 [PATCH v1] generic/735: disable for f2fs Joanne Chang
2025-12-18  7:17 ` [f2fs-dev] " Joanne Chang via Linux-f2fs-devel
2025-12-18  7:33 ` Christoph Hellwig
2025-12-18  7:33   ` [f2fs-dev] " Christoph Hellwig
2025-12-18 12:02   ` Joanne Chang
2025-12-18 12:02     ` [f2fs-dev] " Joanne Chang via Linux-f2fs-devel
2025-12-19  5:30     ` Christoph Hellwig
2025-12-19  5:30       ` [f2fs-dev] " Christoph Hellwig
2025-12-19  8:53       ` Joanne Chang
2025-12-19  8:53         ` [f2fs-dev] " Joanne Chang via Linux-f2fs-devel
2025-12-19 11:10         ` Christoph Hellwig
2025-12-19 11:10           ` [f2fs-dev] " Christoph Hellwig
2025-12-22  2:48           ` Joanne Chang
2025-12-22  2:48             ` [f2fs-dev] " Joanne Chang via Linux-f2fs-devel

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.