[PATCH v1 1/2] mount: change oci layer option from "oci=X" to "oci.layer=X"

ChengyuZhu6 hudson at cyzhu.com
Sat Sep 13 18:27:47 AEST 2025


From: Chengyu Zhu <hudsonzhu at tencent.com>

Make the OCI layer index option more consistent with other OCI options
by changing the format from "oci=X" to "oci.layer=X".

Signed-off-by: Chengyu Zhu <hudsonzhu at tencent.com>
---
 mount/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mount/main.c b/mount/main.c
index 5677031..f368746 100644
--- a/mount/main.c
+++ b/mount/main.c
@@ -82,9 +82,9 @@ static int erofsmount_parse_oci_option(const char *option)
 	struct ocierofs_config *oci_cfg = &nbdsrc.ocicfg;
 	char *p;
 
-	p = strstr(option, "oci=");
+	p = strstr(option, "oci.layer=");
 	if (p != NULL) {
-		p += strlen("oci=");
+		p += strlen("oci.layer=");
 		{
 			char *endptr;
 			unsigned long v = strtoul(p, &endptr, 10);
-- 
2.51.0



More information about the Linux-erofs mailing list