Re: [PATCH] xfs/111: fix cp of missing file

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Sat, Dec 20, 2014 at 03:50:02PM +0800, Xing Gu wrote:
> After installing the test suite, src directory only contains binary
> programs in the final building directory. Here executing "cp src/itrash.c
> $SCRATCH_MNT/${I}" will output "cp: cannot stat 'src/itrash.c': No
> such file or directory" error message. Fix it.
> 
> Signed-off-by: Xing Gu <gux.fnst@xxxxxxxxxxxxxx>
> ---
>  tests/xfs/111 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/xfs/111 b/tests/xfs/111
> index bedead8..a900184 100755
> --- a/tests/xfs/111
> +++ b/tests/xfs/111
> @@ -53,7 +53,7 @@ echo Create some files
>  I=0
>  while [ $I -lt 1000 ]
>  do
> -    cp src/itrash.c $SCRATCH_MNT/${I}
> +    cp src/itrash* $SCRATCH_MNT/${I}
>      let I=$I+1
>  done
>  umount $SCRATCH_DEV

Just use $XFS_IO_PROG to create the files.

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux