mount: change oci layer option from "oci=X" to "oci.layer=X"
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".
Signed-off-by Chengyu Zhu <[email protected]>
--- mount/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mount/main.c +2 -2
@@ -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