[LTP] [PATCH] syscalls/copy_file_range02: skip if cross-fs isn't supported

Cyril Hrubis chrubis@suse.cz
Mon Sep 30 11:24:33 CEST 2019


Hi!
> +static inline int verify_cross_fs_copy_support(void)
> +{
> +	int i, fd, fd_test;
> +
> +	if (!test.mount_device)
> +		tst_brk(TBROK, "using %s() requires setting .mount_device = 1", __func__);
> +
> +	if (strcmp(test.mntpoint, MNTPOINT))
> +		tst_brk(TBROK, "using %s() requires setting .mntpoint = MNTPOINT ('%s')",
> +				__func__, test.mntpoint);

Can we please pass the source and destination as parameters to this
function instead of depending on very speical setup like this?

Also this is a last patch I do consider for the release, I will tag the
git once this is sorted out.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list