From: Liu Bo Date: Mon, 6 Feb 2012 08:27:47 +0000 (+0800) Subject: 251: fix cp -axT problem X-Git-Tag: v2022.05.01~3611 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=929221ba9b50496b2a267796b690b4526191f02b;p=xfstests-dev.git 251: fix cp -axT problem When I ran xfstests, 251 got failed cause I use a symlink and "cp -axT" did not work as wish: cp: cannot overwrite directory `/mnt/scratch/1' with non-directory With this patch, 251 has passed. Signed-off-by: Liu Bo Signed-off-by: Christoph Hellwig --- diff --git a/251 b/251 index fa3d74a9..b54e4c36 100755 --- a/251 +++ b/251 @@ -130,7 +130,7 @@ function run_process() { # Copy content -> partition. mkdir $SCRATCH_MNT/$p - cp -axT $content $SCRATCH_MNT/$p + cp -axT $content/ $SCRATCH_MNT/$p/ export chpid=$! && wait $chpid &> /dev/null check_sums