[PATCH v1] erofs-utils: mount: mark OCI as experimental
ChengyuZhu6
hudson at cyzhu.com
Wed Feb 11 14:26:45 AEDT 2026
From: Chengyu Zhu <hudsonzhu at tencent.com>
mark the OCI backend as EXPERIMENTAL in
both the help message and runtime warning.
Signed-off-by: Chengyu Zhu <hudsonzhu at tencent.com>
---
mount/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mount/main.c b/mount/main.c
index a596c36..5a3dc54 100644
--- a/mount/main.c
+++ b/mount/main.c
@@ -100,7 +100,7 @@ static void usage(int argc, char **argv)
" --reattach reattach to an existing NBD device\n"
#ifdef OCIEROFS_ENABLED
"\n"
- "OCI-specific options (with -o):\n"
+ "OCI-specific options (EXPERIMENTAL, with -o):\n"
" oci.blob=<digest> specify OCI blob digest (sha256:...)\n"
" oci.layer=<index> specify OCI layer index\n"
" oci.platform=<name> specify platform (default: linux/amd64)\n"
@@ -228,6 +228,7 @@ static long erofsmount_parse_flagopts(char *s, long flags, char **more)
if (strncmp(s, "oci", 3) == 0) {
/* Initialize ocicfg here iff != EROFSNBD_SOURCE_OCI */
if (nbdsrc.type != EROFSNBD_SOURCE_OCI) {
+ erofs_warn("OCI support is EXPERIMENTAL, use at your own risk.");
nbdsrc.type = EROFSNBD_SOURCE_OCI;
nbdsrc.ocicfg.layer_index = -1;
}
--
2.47.1
More information about the Linux-erofs
mailing list