[LTP] [PATCH v4 2/3] Add minimum kernel requirement for FS setup
Cyril Hrubis
chrubis@suse.cz
Wed Oct 9 14:20:57 CEST 2024
Hi!
> diff --git a/testcases/lib/tst_run_shell.c b/testcases/lib/tst_run_shell.c
> index ee029b666..e871760e2 100644
> --- a/testcases/lib/tst_run_shell.c
> +++ b/testcases/lib/tst_run_shell.c
> @@ -156,11 +156,13 @@ enum fs_ids {
> MKFS_VER,
> MNT_FLAGS,
> TYPE,
> + FS_MIN_KVER,
This is stil in the wrong place, has to be placed first.
> };
>
> static ujson_obj_attr fs_attrs[] = {
> UJSON_OBJ_ATTR_IDX(MKFS_OPTS, "mkfs_opts", UJSON_ARR),
> UJSON_OBJ_ATTR_IDX(MKFS_SIZE_OPT, "mkfs_size_opt", UJSON_STR),
> + UJSON_OBJ_ATTR_IDX(FS_MIN_KVER, "min_kver", UJSON_STR),
Here as well.
> UJSON_OBJ_ATTR_IDX(MKFS_VER, "mkfs_ver", UJSON_STR),
> UJSON_OBJ_ATTR_IDX(MNT_FLAGS, "mnt_flags", UJSON_ARR),
> UJSON_OBJ_ATTR_IDX(TYPE, "type", UJSON_STR),
> @@ -235,6 +237,9 @@ static struct tst_fs *parse_filesystems(ujson_reader *reader, ujson_val *val)
> case TYPE:
> ret[i].type = strdup(val->val_str);
> break;
> + case FS_MIN_KVER:
> + ret[i].min_kver = strdup(val->val_str);
> + break;
> }
>
> }
>
> --
> 2.43.0
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list