AOSP: erofs-utils: fix sub-directory prefix for canned fs_config
"failed to find [%s] in canned fs_config" was observed by using
"--fs-config-file" option as reported by Yue Hu .
The root cause was that the mountpoint prefix to subdirectories is
also needed if "--mount-point" presents. However, such prefix cannot
be added by just using erofs_fspath().
One exception is that the root directory itself needs to be handled
specially for canned fs_config. For such case, the prefix of the root
directory has to be dropped instead.
Fixes: 8a9e8046f170 ("AOSP: erofs-utils: add fs_config support")
Reported-and-tested-by: Yue Hu <email@example.com>
Tested-by: Huang Jianan <firstname.lastname@example.org>
Reviewed-by: Li Guifu <email@example.com>
Signed-off-by: Gao Xiang <firstname.lastname@example.org>
1 file changed