Skip to contentSkip to conversation

mount: change oci layer option from "oci=X" to "oci.layer=X"

PATCH New ChengyuZhu6 1 participant 1 message Sep 13, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mount: change oci layer option from "oci=X" to "oci.layer=X"

From: Chengyu Zhu <[email protected]>

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

---
 mount/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mount/main.c +2 -2
index 5677031..f368746 100644
@@ -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);
Signature · 1 line
2.51.0