Skip to content

Commit

Permalink
ORI-448 tests: Allocate sequences on MOUNT2 clients in replay_barrier()
Browse files Browse the repository at this point in the history
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 <liwei@whamcloud.com>
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1939
  • Loading branch information
Li Wei authored and miketappro committed Mar 2, 2012
1 parent d933a34 commit be10055
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lustre/tests/test-framework.sh
Expand Up @@ -1681,7 +1681,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
Expand Down

0 comments on commit be10055

Please sign in to comment.