Whamcloud - gitweb
LU-3080 misc: remove checks for pre-3.10 kernels 14/50814/3
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 1 May 2023 03:05:15 +0000 (21:05 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 20 Jun 2023 03:41:45 +0000 (03:41 +0000)
The oldest supported client kernel is el7.9 3.10.x, and even that
is old, so no need to keep checks for 2.6.x kernel versions around.

Test-Parameters: trivial testlist=replay-dual
Test-Parameters: testlist=replay-single
Test-Parameters: testlist=sanity-flr env=ONLY=50d
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I0db781c048334e6ef6df102b100d29e13c64fd25
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50814
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/replay-dual.sh
lustre/tests/replay-single-lmv.sh
lustre/tests/replay-single.sh
lustre/tests/sanity-flr.sh

index 2282931..a3c15d4 100755 (executable)
@@ -47,12 +47,6 @@ CLIENT1=${CLIENT1:-$HOSTNAME}
 # Exception is the test which need two separate nodes
 CLIENT2=${CLIENT2:-$CLIENT1}
 
-# LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels
-if [ $LINUX_VERSION_CODE -lt $(version_code 2.6.33) ]; then
-       sync
-       do_facet $SINGLEMDS "sync; sleep 10; sync; sleep 10; sync"
-fi
-
 force_new_seq_all
 
 LU482_FAILED=$(mktemp -u $TMP/$TESTSUITE.lu482.XXXXXX)
index d77fd89..3a97a21 100755 (executable)
@@ -32,12 +32,6 @@ fi
 
 mkdir -p $DIR
 
-# LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels
-if [ $LINUX_VERSION_CODE -lt $(version_code 2.6.33) ]; then
-    sync
-    do_facet $SINGLEMDS sync
-fi
-
 force_new_seq_all
 
 test_0() {
index 1e1b236..5f469ed 100755 (executable)
@@ -31,12 +31,6 @@ mkdir -p $DIR
 assert_DIR
 rm -rf $DIR/[df][0-9]* $DIR/f.$TESTSUITE.*
 
-# LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels
-if [ $LINUX_VERSION_CODE -lt $(version_code 2.6.33) ]; then
-    sync
-    do_facet $SINGLEMDS sync
-fi
-
 force_new_seq_all
 
 test_0a() {    # was test_0
index 1ba3dd5..3595ad3 100644 (file)
@@ -2973,8 +2973,6 @@ run_test 50c "punch_hole/mmap_write stale other mirrors"
 test_50d() {
        $LCTL get_param osc.*.import | grep -q 'connect_flags:.*seek' ||
                skip "OST does not support SEEK_HOLE"
-       (( $LINUX_VERSION_CODE > $(version_code 3.0.0) )) ||
-               skip "client kernel does not support SEEK_HOLE"
        [ "$FSTYPE" != "zfs" ] ||
                skip "lseek for ZFS is not accurate if obj is not committed"