From: James Nunez Date: Fri, 4 Oct 2013 14:01:26 +0000 (-0600) Subject: LU-4059 tests: Archive access must be done from agent X-Git-Tag: 2.5.0~5 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=57118830eb55ab43b4b6fc096ad40b2bd83c6de3 LU-4059 tests: Archive access must be done from agent In sanity-hsm test_11, the size of an archived file is requested from a client and not necessarily from an agent. So, this patch now makes the call to stat from an agent. Signed-off-by: James Nunez Change-Id: I2f7ef294a0e9e28301312ad8529c6178279f5c19 Reviewed-on: http://review.whamcloud.com/7851 Tested-by: Hudson Reviewed-by: Jinshan Xiong Tested-by: Maloo Reviewed-by: jacques-Charles Lafoucriere Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index b6be099..37a66ce 100644 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -812,7 +812,7 @@ test_11() { check_hsm_flags $f "0x0000000d" local LSZ=$(stat -c "%s" $f) - local ASZ=$(stat -c "%s" $HSM_ARCHIVE/$tdir/$tfile) + local ASZ=$(do_facet $SINGLEAGT stat -c "%s" $HSM_ARCHIVE/$tdir/$tfile) echo "Verifying imported size $LSZ=$ASZ" [[ $LSZ -eq $ASZ ]] || error "Incorrect size $LSZ != $ASZ"