]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
251: fix cp -axT problem
authorLiu Bo <liubo2009@cn.fujitsu.com>
Mon, 6 Feb 2012 08:27:47 +0000 (16:27 +0800)
committerChristoph Hellwig <hch@lst.de>
Sat, 31 Mar 2012 20:14:06 +0000 (20:14 +0000)
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 <liubo2009@cn.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
251

diff --git a/251 b/251
index fa3d74a967e400ba7bbf2455f957ed21cf7ba47c..b54e4c369a80b5553fa29fba2b6597266bd43ad0 100755 (executable)
--- 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