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 <liubo2009@cn.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Liu Bo
2012-02-06 16:27:47 +08:00
committed by Christoph Hellwig
parent a7e35712e8
commit 929221ba9b
+1 -1
View File
@@ -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