ltp icon indicating copy to clipboard operation
ltp copied to clipboard

Add test for .filesystems

Open pevik opened this issue 6 months ago • 2 comments

Filesystem setup change cce6188916b9334a1395baa97654d83a13ff3278 would deserve a test. Some possible examples of more filesystems or single filesystem with various options.

static struct tst_test test = {
	...
	.filesystems = (struct tst_fs []) {
		{.type = "ext3"},
		{.type = "ext4"},
		{}
	};

https://github.com/linux-test-project/ltp/tree/master/testcases/kernel/syscalls/statx/statx06.c

static struct tst_test test = {
	...
	.filesystems = (struct tst_fs[]) {
		{
			.type = "ext4",
			.mkfs_opts = (const char *const []){"-I", "256", NULL},
			.mnt_flags = MS_STRICTATIME,
		},
		{}

https://github.com/linux-test-project/ltp/tree/master/testcases/kernel/syscalls/quotactl/quotactl03.c

static struct tst_test test = {
	...
	.filesystems = (struct tst_fs []) {
		{
			.type = "xfs",
			.mnt_data = "usrquota",
		},
		{}
	},

https://github.com/linux-test-project/ltp/tree/master/testcases/kernel/syscalls/mmap/mmap16.c

static struct tst_test test = {
	...
	.filesystems = (struct tst_fs []) {
		{
			.type = "ext4",
			.mkfs_opts = (const char *const[]){
				"-b", "1024", NULL
			},
			.mkfs_size_opt = "10240",
		},
		{}
	},

pevik avatar May 27 '25 08:05 pevik

checking

coolgw avatar May 27 '25 10:05 coolgw

https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/

coolgw avatar May 28 '25 22:05 coolgw