Skip to content

Add test for .filesystems #1243

Open
Open
@pevik

Description

@pevik

Filesystem setup change cce6188 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",
		},
		{}
	},

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions