public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] btrfs/220: make it compatible with older kernels
@ 2021-08-13  1:59 Anand Jain
  2021-08-13  1:59 ` [PATCH 1/4] rc: debug add _scratch_mount_options to the _scratch_mount Anand Jain
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Anand Jain @ 2021-08-13  1:59 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs

I found this test case fails on older kernels such as 5.4.17 as the
patches that brought the mount options changes aren't the candidate
for the backport because of ABI compliance.

So make this test case to check if the newer options such as [1]
are supported and tests the mount options along with the expected
output in /proc/self/mounts accordingly.

[1]
 mount options changes:
  new                   old
  discard=sync          discard
  rescue=nologreplay    nologreplay

 /proc/self/mounts output changes:
  new  old
  ""   clear_cache

Patch 1 improves the debug log provided by the _fail() for the
scratch_mount.

Patch 2,3,4 fixes discard, nologreplay and clear_cache, respectively
and,  they are separated into the individual patch to show the diff.
These may merge at the time of integration. I am ok.

This patchset is on top of Boris's patch [2]
[2]
 [PATCH] btrfs/220: fix clear_cache and inode_cache option tests
 https://patchwork.kernel.org/project/fstests/patch/409e4c73fefce666d151b043d6b2a0d821f8ef85.1610485406.git.boris@bur.io/

Anand Jain (4):
  rc: debug add _scratch_mount_options to the _scratch_mount
  btrfs/220: discard=sync support older kernel
  btrfs/220: nologreplay support older kernel
  btrfs/220: clear_cache fix for older kernel

 common/rc       |  2 +-
 tests/btrfs/220 | 59 +++++++++++++++++++++++++++++++++++++++----------
 2 files changed, 48 insertions(+), 13 deletions(-)

-- 
2.27.0


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

end of thread, other threads:[~2021-08-13  2:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-13  1:59 [PATCH 0/4] btrfs/220: make it compatible with older kernels Anand Jain
2021-08-13  1:59 ` [PATCH 1/4] rc: debug add _scratch_mount_options to the _scratch_mount Anand Jain
2021-08-13  1:59 ` [PATCH 2/4] btrfs/220: discard=sync support older kernel Anand Jain
2021-08-13  1:59 ` [PATCH 3/4] btrfs/220: nologreplay " Anand Jain
2021-08-13  1:59 ` [PATCH 4/4] btrfs/220: clear_cache fix for " Anand Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox