From a39459d6eec0991e0635f101a1d45e5a763198a0 Mon Sep 17 00:00:00 2001 From: Li Wei Date: Fri, 9 Sep 2011 14:05:56 +0800 Subject: [PATCH] LU-707 Fix FID string quoting in replay-vbr The FID string printed by the "path2fid" lfs command was passed to do_facet() without any quoting. Depending on the names of the files in the remote shell's working directory, the FID string could be replaced, by the shell's filename expansion, to a list of matching file names. This patch adds the necessary quoting prevent the remote shell from doing filename expansion on the FID string. Change-Id: I0bc28eb7f29df717a661a4c1bce8c918117b997c Signed-off-by: Li Wei Reviewed-on: http://review.whamcloud.com/1409 Tested-by: Hudson Reviewed-by: Mikhail Pershin Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/replay-vbr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/replay-vbr.sh b/lustre/tests/replay-vbr.sh index a5a71ec..1aecf89 100644 --- a/lustre/tests/replay-vbr.sh +++ b/lustre/tests/replay-vbr.sh @@ -86,7 +86,7 @@ get_version() { local fid fid=$(do_node $client $LFS path2fid $file) - do_facet $SINGLEMDS $LCTL --device ${!var} getobjversion $fid + do_facet $SINGLEMDS $LCTL --device ${!var} getobjversion \\\"$fid\\\" } #save COS setting -- 1.8.3.1