Whamcloud - gitweb
LU-17477 tests: conf-sanity/48 with debug=0 99/53799/13
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 24 Jan 2024 07:52:20 +0000 (10:52 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2024 18:48:58 +0000 (18:48 +0000)
conf-sanity/48 takes quite long setting 4,5K ACLs.
debug=0 improves this significantly.

Test-Parameters: trivial testlist=conf-sanity env=ONLY=48
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Ifa39b9efc80b41050a13323474dd19b865cc6273
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53799
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh

index 9f5f3b1..14f50f7 100755 (executable)
@@ -4143,6 +4143,11 @@ test_48() { # bz-17636 LU-7473
        setup_noconfig
        check_mount || error "check_mount failed"
 
+       debugsave
+       stack_trap "debugrestore"
+       $LCTL set_param debug=0
+       do_facet $SINGLEMDS $LCTL set_param debug=0
+
        $LFS setstripe -c -1 $MOUNT ||
                error "$LFS setstripe -c -1 $MOUNT failed"
        $LFS getstripe $MOUNT || error "$LFS getstripe $MOUNT failed"
@@ -4155,7 +4160,7 @@ test_48() { # bz-17636 LU-7473
        # LOV EA, and so on. These EA will use some EA space that is shared by
        # ACL entries. So here we only check some reasonable ACL entries count,
        # instead of the max number that is calculated from the max_ea_size.
-       if [ "$MDS1_VERSION" -lt $(version_code 2.8.57) ]; then
+       if (( $MDS1_VERSION < $(version_code 2.8.57) )); then
                count=28        # hard coded of RPC protocol
        elif large_xattr_enabled; then
                count=4500      # max_num 8187 max_ea_size = 65452
@@ -4177,7 +4182,7 @@ test_48() { # bz-17636 LU-7473
 
        count=$((count + 1)) # for the entry "user::rw-"
 
-       [ $count -eq $r_count ] ||
+       (( $count == $r_count )) ||
                error "Expected ACL entries $count, but got $r_count"
 
        cleanup_48