[PATCH 1/1] erofs-utils: mount: auto-detect platform for OCI recovery files
Gao Xiang
hsiangkao at linux.alibaba.com
Fri Feb 27 14:42:16 AEDT 2026
On 2026/2/27 11:34, Chengyu wrote:
> From: Chengyu Zhu <hudsonzhu at tencent.com>
>
> erofsmount_write_recovery_oci() writes source->ocicfg.platform into
> recovery files directly, but it could be NULL when not explicitly
> configured, causing reattach failures.
>
> Fix this by falling back to ocierofs_get_platform_spec(). Also
> refactor it to return a compile-time string literal instead of
> asprintf(), eliminating the need for callers to free() the result.
>
> Signed-off-by: Chengyu Zhu <hudsonzhu at tencent.com>
LGTM, will apply.
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list