Whamcloud - gitweb
EX-3253 iokit: correct device name in ec_using_srv_nid()
authorMikhail Pershin <mpershin@whamcloud.com>
Fri, 28 Jan 2022 20:39:25 +0000 (23:39 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 1 Feb 2022 08:26:21 +0000 (08:26 +0000)
Patch changes in ec_using_srv_nid():
- use 'oscname' instead of 'ocsname', that also fixes typo
  introduced by EX-1873
- use explicit --device parameter for echo_client setup, that
  was missed in EX-1873 and completes its work

Test-Parameters: trivial testlist=obdfilter-survey env=ONLY=3a
Fixes: aba6201da5 (EX-1873 iokit: fix the obsolete usage of cfg_device)
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I661a58299adfba09983ec73f9801726789d79f4a
Reviewed-on: https://review.whamcloud.com/46366
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre-iokit/obdfilter-survey/iokit-libecho

index 76d4bf1..0a3a95c 100644 (file)
@@ -322,17 +322,17 @@ ec_using_osc () {
 # create echo client using server nid.
 ec_using_srv_nid () {
        local server_nid=$1
-       local ocsname=$2
+       local oscname=$2
        local oscuuid=$3
 
        $lctl add_uuid echo_UUID $server_nid@$NETTYPE >/dev/null 2>&1
        $lctl <<-EOF
-               attach osc $ocsname $oscuuid
+               attach osc $oscname $oscuuid
                --device $oscname setup echo_srv_UUID echo_UUID
        EOF
        $lctl <<-EOF
-               attach echo_client ${ocsname}_ecc $oscuuid
-               setup $ocsname
+               attach echo_client ${oscname}_ecc $oscuuid
+               --device ${oscname}_ecc setup $oscname
        EOF
 }