[PATCH] erofs-utils: mkfs: support tgz streams for tarerofs
Gao Xiang
xiang at kernel.org
Wed Sep 20 21:32:12 AEST 2023
On Wed, Sep 20, 2023 at 02:59:47AM +0800, Gao Xiang wrote:
> Introduce iostream to wrap up the input tarball stream for tarerofs.
>
> Besides, add bultin tgz support if zlib is linked to mkfs.
>
> Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
Apply the following diff to fix pax header regression:
diff --git a/lib/tar.c b/lib/tar.c
index 52036a6..0744972 100644
--- a/lib/tar.c
+++ b/lib/tar.c
@@ -191,7 +191,7 @@ int erofs_iostream_bread(struct erofs_iostream *ios, void *buf, u64 bytes)
rem -= ret;
} while (rem && ret);
- return rem;
+ return bytes - rem;
}
int erofs_iostream_lskip(struct erofs_iostream *ios, u64 sz)
More information about the Linux-erofs
mailing list