* [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19
@ 2022-09-30 9:12 Petr Vorel
2022-09-30 9:21 ` Cyril Hrubis
0 siblings, 1 reply; 8+ messages in thread
From: Petr Vorel @ 2022-09-30 9:12 UTC (permalink / raw)
To: ltp
mkfs.xfs for kernel 5.19 bumps minimum filesystems 300 MB. Due this we
already updated minimal filesystem size for all_filesystems /
$TST_ALL_FILESYSTEMS in 66e05c841. But zram01.sh does not use the API,
thus update it now.
Also require 1G of RAM for XFS (check originally added in f18c8fd3a for
Btrfs on ppc64le due to larger page size, likely needed for also XFS).
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Changes v1->v2:
* add 1GB memory check also for XFS (check_space_for_fs, Cyril)
Kind regards,
Petr
testcases/kernel/device-drivers/zram/zram01.sh | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/testcases/kernel/device-drivers/zram/zram01.sh b/testcases/kernel/device-drivers/zram/zram01.sh
index 8b92b699f..d4e46c247 100755
--- a/testcases/kernel/device-drivers/zram/zram01.sh
+++ b/testcases/kernel/device-drivers/zram/zram01.sh
@@ -11,13 +11,14 @@ TST_TESTFUNC="do_test"
TST_NEEDS_CMDS="awk bc dd"
TST_SETUP="setup"
-check_space_for_btrfs()
+check_space_for_fs()
{
+ local fs="$1"
local ram_size
ram_size=$(awk '/MemTotal:/ {print $2}' /proc/meminfo)
if [ "$ram_size" -lt 1048576 ]; then
- tst_res TINFO "not enough space for Btrfs"
+ tst_res TINFO "not enough space for $fs"
return 1
fi
return 0
@@ -41,9 +42,15 @@ initialize_vars()
for fs in $(tst_supported_fs -s tmpfs); do
size="26214400"
limit="25M"
- if [ "$fs" = "btrfs" ]; then
- check_space_for_btrfs || continue
- size="402653184"
+
+ if [ "$fs" = "btrfs" -o "$fs" = "xfs" ]; then
+ check_space_for_fs "$fs" || continue
+
+ if [ "$fs" = "btrfs" ]; then
+ size="402653184"
+ elif [ "$fs" = "xfs" ]; then
+ size=314572800
+ fi
limit="$((size/1024/1024))M"
fi
--
2.37.3
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19
2022-09-30 9:12 [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19 Petr Vorel
@ 2022-09-30 9:21 ` Cyril Hrubis
2022-09-30 9:27 ` Petr Vorel
0 siblings, 1 reply; 8+ messages in thread
From: Cyril Hrubis @ 2022-09-30 9:21 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp
Hi!
Looks good to me. Please make sure that this gets tested fairly before
pushing.
Also Li if you can please double check since we are very late in the
release process.
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19
2022-09-30 9:21 ` Cyril Hrubis
@ 2022-09-30 9:27 ` Petr Vorel
2022-09-30 9:35 ` Cyril Hrubis
0 siblings, 1 reply; 8+ messages in thread
From: Petr Vorel @ 2022-09-30 9:27 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: ltp
> Hi!
> Looks good to me. Please make sure that this gets tested fairly before
> pushing.
+1. I've tested it on Tumbleweed, kernel 6.0.0-rc7-1.g74aafe0-default,
mkfs.xfs 5.19.0.
> Also Li if you can please double check since we are very late in the
> release process.
+1
I can merge it tonight, or wait for Li on next week.
Thanks for your review!
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19
2022-09-30 9:27 ` Petr Vorel
@ 2022-09-30 9:35 ` Cyril Hrubis
2022-09-30 10:04 ` Petr Vorel
2022-09-30 13:30 ` Petr Vorel
0 siblings, 2 replies; 8+ messages in thread
From: Cyril Hrubis @ 2022-09-30 9:35 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp
Hi!
> > Looks good to me. Please make sure that this gets tested fairly before
> > pushing.
> +1. I've tested it on Tumbleweed, kernel 6.0.0-rc7-1.g74aafe0-default,
> mkfs.xfs 5.19.0.
>
> > Also Li if you can please double check since we are very late in the
> > release process.
> +1
> I can merge it tonight, or wait for Li on next week.
I'm going to tag the git in the evening/afternoon so it would be nice to
get this in ASAP.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19
2022-09-30 9:35 ` Cyril Hrubis
@ 2022-09-30 10:04 ` Petr Vorel
2022-09-30 13:30 ` Petr Vorel
1 sibling, 0 replies; 8+ messages in thread
From: Petr Vorel @ 2022-09-30 10:04 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: ltp
> Hi!
> > > Looks good to me. Please make sure that this gets tested fairly before
> > > pushing.
> > +1. I've tested it on Tumbleweed, kernel 6.0.0-rc7-1.g74aafe0-default,
> > mkfs.xfs 5.19.0.
> > > Also Li if you can please double check since we are very late in the
> > > release process.
> > +1
> > I can merge it tonight, or wait for Li on next week.
> I'm going to tag the git in the evening/afternoon so it would be nice to
> get this in ASAP.
OK, we have another regression in 1f6bd6e66 ("tst_test.sh: Add
$TST_ALL_FILESYSTEMS"). I'll reply to release thread.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19
2022-09-30 9:35 ` Cyril Hrubis
2022-09-30 10:04 ` Petr Vorel
@ 2022-09-30 13:30 ` Petr Vorel
2022-10-09 3:23 ` Li Wang
1 sibling, 1 reply; 8+ messages in thread
From: Petr Vorel @ 2022-09-30 13:30 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: ltp
Hi all,
Tested on affected 5.19 kernel and various older SLES kernels.
Therefore merged.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19
2022-09-30 13:30 ` Petr Vorel
@ 2022-10-09 3:23 ` Li Wang
2022-10-10 6:20 ` Petr Vorel
0 siblings, 1 reply; 8+ messages in thread
From: Li Wang @ 2022-10-09 3:23 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp
[-- Attachment #1.1: Type: text/plain, Size: 394 bytes --]
Hi Petr, Cyril,
Thanks for moving on this, and good to see the new released.
I had to suspend work and deal with some family matters last week,
so sorry for the later reply.
On Fri, Sep 30, 2022 at 9:30 PM Petr Vorel <pvorel@suse.cz> wrote:
> Hi all,
>
> Tested on affected 5.19 kernel and various older SLES kernels.
> Therefore merged.
>
> Kind regards,
> Petr
>
>
--
Regards,
Li Wang
[-- Attachment #1.2: Type: text/html, Size: 1311 bytes --]
[-- Attachment #2: Type: text/plain, Size: 60 bytes --]
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19
2022-10-09 3:23 ` Li Wang
@ 2022-10-10 6:20 ` Petr Vorel
0 siblings, 0 replies; 8+ messages in thread
From: Petr Vorel @ 2022-10-10 6:20 UTC (permalink / raw)
To: Li Wang; +Cc: ltp
Hi Li,
> Hi Petr, Cyril,
> Thanks for moving on this, and good to see the new released.
> I had to suspend work and deal with some family matters last week,
> so sorry for the later reply.
No problem, understand, hope everything is OK on your side.
And thank you for your work, you're one of the most active reviewers.
Kind regards,
Petr
> On Fri, Sep 30, 2022 at 9:30 PM Petr Vorel <pvorel@suse.cz> wrote:
> > Hi all,
> > Tested on affected 5.19 kernel and various older SLES kernels.
> > Therefore merged.
> > Kind regards,
> > Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-10-10 6:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-30 9:12 [LTP] [PATCH v2 1/1] zram01.sh: Fix minimal size for XFS on kernel 5.19 Petr Vorel
2022-09-30 9:21 ` Cyril Hrubis
2022-09-30 9:27 ` Petr Vorel
2022-09-30 9:35 ` Cyril Hrubis
2022-09-30 10:04 ` Petr Vorel
2022-09-30 13:30 ` Petr Vorel
2022-10-09 3:23 ` Li Wang
2022-10-10 6:20 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox