Re: [PATCH v3] erofs: accept source file descriptor via fsconfig

Gao Xiang <[email protected]> Fri, 17 Jul 2026 11:42:39 +0800
Newsgroups org.ozlabs.lists.linux-erofs,org.kernel.vger.linux-fsdevel
Message-ID <[email protected]>
Hi Giuseppe,

On 2026/7/14 23:48, Giuseppe Scrivano wrote:
> Allow userspace to pass an already-opened file descriptor as the mount
> source instead of a path string.  This is useful for tools that already
> hold an fd to the image, such as composefs reusing an existing erofs
> backing file.
> 
> Signed-off-by: Giuseppe Scrivano <[email protected]>

Use the current erofs-utils testsuite, the following tests seems skipped incorrectly.

[Error 22] Invalid argument
SKIP: erofs/008
[Error 22] Invalid argument
SKIP: erofs/009
[Error 22] Invalid argument
SKIP: erofs/010
[Error 22] Invalid argument
SKIP: erofs/011

[Error 22] Invalid argument
SKIP: erofs/017
[Error 22] Invalid argument
SKIP: erofs/018

And the kernel message shows:
[  116.477816] erofs: source is unsupported
...

git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git -b experimental-tests
$ sudo make check

Thanks,
Gao Xiang