Skip to content

tmpfs fixes

Daniel Gomez fstests 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5generic/449: not run on tmpfs earliertests/generic/449+6 -01 reply
2/5common/config: fix RECREATE_TEST_DEV initializationcommon/config+1 -12 replies
3/5common/rc: add recreation support for tmpfscommon/rc+4 -15 replies
4/5common/rc: fix scratch mount options for tmpfscommon/rc+1 -14 replies
5/5common/rc: print scratch and test mount optionscheck common/rc+22 -24 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchDarrick J. WongZorro Lang
1/5
2/5R-b R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] tmpfs fixes

This series addresses some minor issues found in tmpfs FSQA suit test case.

The last patch adds information about mkfs and mount options for TEST and SCRATCH devices. This is important to clarify especially if RECREATE_TEST_DEV is disabled (which is the default case). The new output will look like the following:

SECTION       -- tmpfs_noswap_huge_always
RECREATING    -- tmpfs on /media/test
FSTYP         -- tmpfs
PLATFORM      -- Linux/aarch64 localhost 6.10.0-rc3-dgc #6 SMP Thu Jun 13 22:48:46 CEST 2024

TEST device:
MKFS_OPTIONS -- /media/test
MOUNT_OPTIONS -- -o size=1G /media/test /media/test
SCRATCH device:
MKFS_OPTIONS -- /media/scratch
MOUNT_OPTIONS -- -o size=1G -o noswap,huge=always /media/scratch /media/scratch

Regarding $TMPFS_MOUNT_OPTIONS, when it is defined in the [default] section of a configuration file, the mount options specified there will be prefixed to the test section options. Is this the correct and expected behaviour?

Example:

```localhost.config
[default]
FSTYP=tmpfs
TEST_DIR=/media/test
SCRATCH_MNT=/media/scratch
SCRATCH_DEV=/media/scratch
RESULT_BASE=$PWD/results/$HOST/$(uname -r)
TEST_DEV=/media/test
CANON_DEVS=yes
TMPFS_MOUNT_OPTIONS="-o size=3G"

[tmpfs_noswap_huge_always]
TMPFS_MOUNT_OPTIONS="-o noswap,huge=always"
```

Note: The above config would result in '-o size=1G -o size=3G -o noswap,huge=always' at mount time for tmpfs_noswap_huge_always section. The '-o size=1G' is a hardcoded prefix mount option.

Daniel

Daniel Gomez (4):
common/config: fix RECREATE_TEST_DEV initialization common/rc: add recreation support for tmpfs common/rc: fix scratch mount options for tmpfs common/rc: print scratch and test mount options

Hugh Dickins (1):
generic/449: not run on tmpfs earlier

 check             |  4 ++++
 common/config     |  2 +-
 common/rc         | 25 ++++++++++++++++++++++---
 tests/generic/449 |  6 ++++++
 4 files changed, 33 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0