From: Gao Xiang <hsiangkao@linux.alibaba.com>
To: Ivan Mikheykin <ivan.mikheykin@flant.com>, linux-erofs@lists.ozlabs.org
Subject: Re: [PATCH] erofs-utils: tar: support archives without end-of-archive entry
Date: Tue, 30 Sep 2025 16:01:58 +0800 [thread overview]
Message-ID: <00f93f33-b42e-48e0-9e22-81e50faca479@linux.alibaba.com> (raw)
In-Reply-To: <c5318494-be05-452e-8f1c-626de696c0ec@flant.com>
On 2025/9/30 15:42, Ivan Mikheykin wrote:
> Hello!
>
> On 9/29/25 5:50 PM, Gao Xiang wrote:
>
>> Could you confirm how docker/containerd or podman parses such image?
>
> I confirm that images with such layers work well at least in containerd with overlayfs. We encounter problems during experiments with containerd and erofs. Also, GNU tar and BSD tar are good without end-of-archive zeros.
>
>>
>> Because the POSIX standard says:
>> https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html
>> "At the end of the archive file there shall be two 512-byte blocks filled
>> with binary zeros, interpreted as an end-of-archive indicator."
>>
>> So such tar layers will be non-standard, I wonder we need at least
>> a erofs_warn() message for such tars at least.
>>
>
> Good point. I think I can add erofs_warn() message to the patch.
Yes, please.
>
>
> P.S. I've noticed an interesting detail after submitting the patch. Produced erofs image reports an enormous file size after conversion error:
>
> $ mkfs.erofs --tar=f --aufs --quiet -Enoinline_data test.erofs test-no-end.tar
> -rw-r--r-- 1 user admin 2199023255552 Sep 29 13:43 test.erofs
Yes, that is expected according to the current codebase
since it uses a sparse file to keep temproary data and
truncate when successful.
I guess we should remove the image entirely if mkfs
fails instead.
Thanks,
Gao Xiang
> $ du -sh test.erofs
> 4,0K test.erofs
>
next prev parent reply other threads:[~2025-09-30 8:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-29 13:32 [PATCH] erofs-utils: tar: support archives without end-of-archive entry Ivan Mikheykin
2025-09-29 14:50 ` Gao Xiang
2025-09-30 7:42 ` Ivan Mikheykin
2025-09-30 8:01 ` Gao Xiang [this message]
2025-09-30 8:08 ` Gao Xiang
2025-10-01 17:13 ` [PATCH v2] " Ivan Mikheykin
2025-10-02 0:39 ` Gao Xiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00f93f33-b42e-48e0-9e22-81e50faca479@linux.alibaba.com \
--to=hsiangkao@linux.alibaba.com \
--cc=ivan.mikheykin@flant.com \
--cc=linux-erofs@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.