erofs-utils: mount: mark OCI as experimental
PATCH 1/1 erofs-utils: mount: mark OCI as experimental
From: Chengyu Zhu <[email protected]>
mark the OCI backend as EXPERIMENTAL in
both the help message and runtime warning.
Signed-off-by Chengyu Zhu <[email protected]>
--- mount/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mount/main.c +2 -1
@@ -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 ; }
Signature · 1 line
2.47.1