]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/742: require FIEMAP support
authorChen Hanxiao <chenhx.fnst@fujitsu.com>
Wed, 15 May 2024 09:21:33 +0000 (17:21 +0800)
committerZorro Lang <zlang@kernel.org>
Sat, 25 May 2024 05:57:33 +0000 (13:57 +0800)
Some filesystems which don't support FIEMP fail on this test, e.g.
  FSTYP         -- nfs
  PLATFORM      -- xxxxxxxx
  MKFS_OPTIONS  -- xxxx-xxx-xxx:/mnt/xfstests/scratch/nfs-server
  MOUNT_OPTIONS -- -o vers=4.2 -o context=system_u:object_r:root_t:s0 xxxx-xxx-xxx:/mnt/xfstests/scratch/nfs-server /mnt/xfstests/scratch/nfs-client

  generic/742       [failed, exit status 1]- output mismatch (see /var/lib/xfstests/results//generic/742.out.bad)
      --- tests/generic/742.out 2024-05-12 10:48:02.502761852 -0400
      +++ /var/lib/xfstests/results//generic/742.out.bad 2024-05-12 21:10:48.412498322 -0400
      @@ -1,2 +1,3 @@
       QA output created by 742
       Silence is golden
      +fiemap-fault: fiemap failed 95: Operation not supported

So _notrun if FIEMAP isn't supported by $FSTYP.

Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/742

index 43ebdbc63f8144ce24a6db5816c0b96f9f84cce7..aad57f2d6d4994436c370ba652e897d7a3bdcee4 100755 (executable)
@@ -30,6 +30,7 @@ _require_test
 _require_test_program "fiemap-fault"
 _require_test_program "punch-alternating"
 _require_xfs_io_command "fpunch"
+_require_xfs_io_command "fiemap"
 
 dst=$TEST_DIR/$seq/fiemap-fault