]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
utils: add struct vfstest_info
authorChristian Brauner <brauner@kernel.org>
Thu, 12 May 2022 16:52:43 +0000 (18:52 +0200)
committerZorro Lang <zlang@kernel.org>
Sun, 15 May 2022 01:01:50 +0000 (09:01 +0800)
commite5f0de862eaa7efa0baef17a54149c75977bbc54
tree46fdf49466c7a489839abf379a77f4578d990b4a
parent836c87fb1e7b86622e77f1efa2f8f9ac2755c96c
utils: add struct vfstest_info

So far we were able to rely on global variables as the idmapped mount
test suite was a single source file. But that gets messy when we split
it into multiple source files in the following patches. Instead of
global variables introduce struct vfstest_info which provides all
information about the test suite run and pass it to all tests.

Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/vfs/utils.h
src/vfs/vfstest.c