From afb73fcd68ce9723f651c5dfc65e981a9257bdea Mon Sep 17 00:00:00 2001 From: grev Date: Tue, 30 Sep 2008 11:18:19 +0000 Subject: [PATCH] b=14471 i=Tappro replace proc with lctl [set|get]_param --- lustre/tests/replay-vbr.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lustre/tests/replay-vbr.sh b/lustre/tests/replay-vbr.sh index e24602e..bdbbdb6 100644 --- a/lustre/tests/replay-vbr.sh +++ b/lustre/tests/replay-vbr.sh @@ -100,7 +100,7 @@ test_3a() { zconf_mount_clients $CLIENT2 $DIR #make sure the time will change - do_facet mds "echo 0 > /proc/fs/lustre/mds/${mds_svc}/atime_diff" || return + do_facet mds "$LCTL set_param mds.${mds_svc}.atime_diff=0" || return do_node $CLIENT1 touch $DIR/$tfile do_node $CLIENT2 $CHECKSTAT $DIR/$tfile sleep 1 @@ -132,8 +132,8 @@ test_3b() { zconf_mount_clients $CLIENT2 $DIR #make sure the time will change - do_facet mds "echo 0 > /proc/fs/lustre/mds/${mds_svc}/atime_diff" || return - do_facet mds "echo 0 > /proc/fs/lustre/mds/${mds_svc}/sync_permission" || return + do_facet mds "$LCTL set_param mds.${mds_svc}.atime_diff=0" || return + do_facet mds "$LCTL set_param mds.${mds_svc}.sync_permission=0" || return do_node $CLIENT1 touch $DIR/$tfile do_node $CLIENT2 $CHECKSTAT $DIR/$tfile sleep 1 @@ -168,7 +168,7 @@ test_3c() { zconf_mount_clients $CLIENT2 $DIR # check that permission changes are synced - do_facet mds "echo 1 > /proc/fs/lustre/mds/${mds_svc}/sync_permission" + do_facet mds "$LCTL set_param mds.${mds_svc}.sync_permission=1" do_node $CLIENT1 mkdir -p $DIR/d3c/sub || error #chown -R $RUNAS_ID $MOUNT1/d3 @@ -197,7 +197,7 @@ test_3c() { zconf_mount $CLIENT2 $DIR || error "mount $CLIENT2 $DIR fail" do_node $CLIENT1 $RUNAS cat $DIR/d3c/sub/$tfile && return 6 do_node $CLIENT2 $RUNAS cat $DIR/d3c/sub/$tfile && return 7 - do_facet mds "echo 0 > /proc/fs/lustre/mds/${mds_svc}/sync_permission" + do_facet mds "$LCTL set_param mds.${mds_svc}.sync_permission=0" return 0 } -- 1.8.3.1