[PATCH] erofs-utils: tests: add test for file-backed mount

Gao Xiang hsiangkao at linux.alibaba.com
Tue Oct 15 14:48:20 AEDT 2024



On 2024/10/14 23:03, Hongzhen Luo wrote:
> Test for the file-backed mount feature.
> 
> Signed-off-by: Hongzhen Luo <hongzhen at linux.alibaba.com>

I think we need to run all previous tests for file-backed mounts,
and it's my previous mount helper for testing.

#include <sys/mount.h>

int main(int argc, char *argv[])
{
         return mount(argv[1], argv[2], "erofs", MS_RDONLY, argc >= 3 ? argv[3] : NULL);

}

Thanks,
Gao Xiang


More information about the Linux-erofs mailing list