Whamcloud - gitweb
EX-7596 tests: disable metadata_csum_seed for pcc cache device
authorLei Feng <flei@whamcloud.com>
Tue, 6 Jun 2023 11:47:05 +0000 (19:47 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 12 Jun 2023 23:27:20 +0000 (23:27 +0000)
latest e2fsprogs enable metadata_csum_seed feature when mkfs.ext4
a device, which is used in pcc test as a cache device. Such a ext4
fs cannot be mounted on an old kernel of el7. So disable this
feature for pcc cache device if it is detected in sanity-pcc test.

Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial testlist=sanity-pcc clientdistro=el7.9
Change-Id: I2ef3ff27b49fb479ec348b742cf614a43321813b
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51234
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-pcc.sh

index c07c486..e727758 100644 (file)
@@ -215,6 +215,9 @@ setup_loopdev() {
        do_facet $facet mount
        do_facet $facet mkfs.ext4 $file ||
                error "mkfs.ext4 $file failed"
+       do_facet $facet "tune2fs -l $file | grep metadata_csum_seed && \
+               tune2fs -O ^metadata_csum_seed $file" ||
+               error "failed to turn off metadata_csum_seed feature"
        do_facet $facet file $file
        do_facet $facet mount -t ext4 -o loop,usrquota,grpquota $file $mntpt ||
                error "mount -o loop,usrquota,grpquota $file $mntpt failed"
@@ -234,6 +237,9 @@ setup_loopdev_project() {
        do_facet $facet $UMOUNT $mntpt
        do_facet $facet mkfs.ext4 -O project,quota $file ||
                error "mkfs.ext4 -O project,quota $file failed"
+       do_facet $facet "tune2fs -l $file | grep metadata_csum_seed && \
+               tune2fs -O ^metadata_csum_seed $file" ||
+               error "failed to turn off metadata_csum_seed feature"
        do_facet $facet file $file
        do_facet $facet mount -t ext4 -o loop,prjquota $file $mntpt ||
                error "mount -o loop,prjquota $file $mntpt failed"