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 <[email protected]>
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)