[LTP] [PATCH 1/1] zram01.sh: Rewrite to run by single filesystem
Petr Vorel
pvorel@suse.cz
Mon Nov 9 14:12:11 CET 2026
> Hi!
> > 1) test only particular filesystem
> > 2) easily identify which filesystem is slow or fails
> > Signed-off-by: Petr Vorel <pvorel@suse.cz>
> > ---
> > runtest/kernel_misc | 9 +++
> > .../kernel/device-drivers/zram/zram01.sh | 75 +++++++++++--------
> > 2 files changed, 54 insertions(+), 30 deletions(-)
> > diff --git a/runtest/kernel_misc b/runtest/kernel_misc
> > index ac14f633e2..05ec709422 100644
> > --- a/runtest/kernel_misc
> > +++ b/runtest/kernel_misc
> > @@ -13,6 +13,15 @@ uaccess uaccess
> > rcu_torture rcu_torture.sh
> > lock_torture lock_torture.sh
> > zram01 zram01.sh
> > +zram01_ext2 zram01.sh -f ext2
> > +zram01_ext3 zram01.sh -f ext3
> > +zram01_ext4 zram01.sh -f ext4
> > +zram01_xfs zram01.sh -f xfs
> > +zram01_btrfs zram01.sh -f btrfs
> > +zram01_bcachefs zram01.sh -f bcachefs
> > +zram01_vfat zram01.sh -f vfat
> > +zram01_exfat zram01.sh -f exfat
> > +zram01_ntfs zram01.sh -f ntfs
> I do not like this. With this we have to maintain the list of the
> filesystems manually in the runtest file. What is the exact problem you
> are trying to fix?
FYI we use this approach also on mkfs01.sh (it was not transformed to use
TST_ALL_FILESYSTEMS).
I'm sorry to not explain it properly. zram01.sh sometimes timeouts on slower
worker (I need to dig further as increasing timeout did not help) and it's not from
the first view obvious what is wrong. One can debug with
LTP_FORCE_SINGLE_FS_TYPE or LTP_SINGLE_FS_TYPE, but it's not that easy to filter
out filesystem one is not interested in (which would be with this one). But ok,
that's general problem of .all_filesystems = 1 approach anyway.
I'll first debug with a custom code using LTP_FORCE_SINGLE_FS_TYPE.
Also rewrite the test to use TST_ALL_FILESYSTEMS would probably help to more
easily see which filesystem is tested (and maybe even with better timeout
handling).
Kind regards,
Petr
More information about the ltp
mailing list