From: Li Wei Date: Tue, 10 Jan 2012 08:03:21 +0000 (+0800) Subject: LU-1943 tests: Allocate sequences on MOUNT2 in replay_barrier() X-Git-Tag: 2.3.53~14 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5a18ff10504276d46e8b1615629743566d9c0cee;p=fs%2Flustre-release.git LU-1943 tests: Allocate sequences on MOUNT2 in replay_barrier() Port of ORI-448 to the master In order to avoid sequence file updates after a target is made read-only, replay_barrier() creates a file in "MOUNT" on every client node. This is not enough because the "MOUNT2" clients may also trigger sequence file updates. This patch makes sure the trick is applied to "MOUNT2" clients as well. Change-Id: I832689a2d2ca205d927bc5d0a15ab14fceb3bf80 Signed-off-by: Li Wei Reviewed-by: Mikhail Pershin Signed-off-by: Mikhail Pershin Reviewed-on: http://review.whamcloud.com/4196 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index b85a480..83a1dae 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -2055,7 +2055,9 @@ replay_barrier() { # make sure there will be no seq change local clients=${CLIENTS:-$HOSTNAME} - do_nodes $clients "f=${MOUNT}/fsa-\\\$(hostname); mcreate \\\$f; rm \\\$f" + local f=fsa-\\\$\(hostname\) + do_nodes $clients "mcreate $MOUNT/$f; rm $MOUNT/$f" + do_nodes $clients "if [ -d $MOUNT2 ]; then mcreate $MOUNT2/$f; rm $MOUNT2/$f; fi" local svc=${facet}_svc do_facet $facet $LCTL --device %${!svc} notransno