[LTP] [PATCH v2] Add test for misaligned fallocate()

Cyril Hrubis chrubis@suse.cz
Tue Jan 21 16:49:42 CET 2020


Hi!
> +	SAFE_CLOSE(fd);
> +	tst_system("rm -r " MNTPOINT "/*");

Just FYI, we already have something like this implemented but not
exported outside of the test library. We basically need a public
wrapper around the rmobj() function from the tst_tmpdir.c

> +}
> +
> +static void cleanup(void)
> +{
> +	free(wbuf);
> +	free(rbuf);
> +}
> +
> +static struct tst_test test = {
> +	.test = run,
> +	.tcnt = ARRAY_SIZE(testcase_list),
> +	.needs_root = 1,
> +	.mount_device = 1,
> +	.dev_min_size = 512,
> +	.mntpoint = MNTPOINT,
> +	.all_filesystems = 1,
> +	.setup = setup,
> +	.cleanup = cleanup,
> +};
> -- 
> 2.24.1
> 
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list