From: Yan, Zheng Date: Tue, 18 Aug 2015 07:22:55 +0000 (+0800) Subject: qa/fsstress.sh: fix 'cp not writing through dangling symlink' X-Git-Tag: v0.94.6~6^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1b02859480677abbd8708650764ed6815917e0cd;p=ceph.git qa/fsstress.sh: fix 'cp not writing through dangling symlink' On some test machines, /usr/lib/ltp/testcases/bin/fsstress is dangling symlink. 'cp -f' is impotent in this case. Fixes: #12710 Signed-off-by: Yan, Zheng (cherry picked from commit 479f2a760baf6af4714d3391a366a6b3acf1bcaf) --- diff --git a/qa/workunits/suites/fsstress.sh b/qa/workunits/suites/fsstress.sh index 7732494e09ec3..1951106ae6214 100755 --- a/qa/workunits/suites/fsstress.sh +++ b/qa/workunits/suites/fsstress.sh @@ -11,7 +11,7 @@ then cd /tmp/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress make sudo mkdir -p /usr/lib/ltp/testcases/bin - sudo cp -avf /tmp/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress/fsstress /usr/lib/ltp/testcases/bin/fsstress + sudo cp -av --remove-destination /tmp/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress/fsstress /usr/lib/ltp/testcases/bin/fsstress sudo chmod 755 /usr/lib/ltp/testcases/bin/fsstress rm -Rf /tmp/fsstress cd $path