[LTP] [PATCH v2] syscalls/ioctl_loop05: Ensure do zero offset when using -i parameter

Cyril Hrubis chrubis@suse.cz
Tue May 12 11:58:32 CEST 2020


Hi!
>  	memset(&loopinfo, 0, sizeof(loopinfo));
> +	/*
> +	 * Setting loopdevice with zero loop_info struct, so we can avoid unknown
> +	 * error when using -i parameter.
> +	 */
> +	TST_RETRY_FUNC(ioctl(dev_fd, LOOP_SET_STATUS, &loopinfo), TST_RETVAL_EQ0);

I've merged the patch without the comment, the commit message is
descriptive enough.

Thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list