Skip to contentSkip to conversation

erofs-utils: mkfs: oci: use aufs mode for tar conversion

PATCH New Gao Xiang 1 participant 1 message Aug 28, 2025

lore
Share & tools
lore

Gao Xiang

author
#0 lore raw

PATCH 1/1 erofs-utils: mkfs: oci: use aufs mode for tar conversion

Since standard OCI images use aufs metadata instead.

Fixes bf7e2b01a93f ("erofs-utils: mkfs: add OCI registry support")
---
 lib/remotes/oci.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
lib/remotes/oci.c +3 -2
index 0fb8c1f..c8feb98 100644
@@ -781,6 +781,9 @@ static int ocierofs_extract_layer(struct erofs_oci *oci, struct erofs_importer *
 	int ret;
 
 	stream = (struct erofs_oci_stream) {
+		.tarfile = {
+			.aufs = true,
+		},
 		.digest = digest,
 		.blobfd = erofs_tmpfile(),
 	};
@@ -830,9 +833,7 @@ static int ocierofs_extract_layer(struct erofs_oci *oci, struct erofs_importer *
 		goto out;
 	}
 
-	memset(&stream.tarfile, 0, sizeof(stream.tarfile));
 	init_list_head(&stream.tarfile.global.xattrs);
-
 	ret = erofs_iostream_open(&stream.tarfile.ios, stream.blobfd,
 				  EROFS_IOS_DECODER_GZIP);
 	if (ret) {
Signature · 1 line
2.43.5