584e1c35 | 03-Apr-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
tarfs: Ignore global extended headers.
Previously, we would error out if we encountered a global extended header, because we don't know what it means. This doesn't really matter though, and traditi
tarfs: Ignore global extended headers.
Previously, we would error out if we encountered a global extended header, because we don't know what it means. This doesn't really matter though, and traditionally, tar implementations have either ignored them or treated them as plain files, so just ignore them. This allows tarfs to mount tar files created by `git archive`.
MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44600
show more ...
|
32b8aac6 | 06-Mar-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
tarfs: Factor out common test code.
MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44227 |
0118b0c8 | 06-Mar-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
tarfs: Fix checksum calculation.
The checksum code assumed that struct ustar_header filled an entire block and calculcated the checksum based on the size of the structure. The header is in fact only
tarfs: Fix checksum calculation.
The checksum code assumed that struct ustar_header filled an entire block and calculcated the checksum based on the size of the structure. The header is in fact only 500 bytes long while the checksum covers the entire block (“logical record” in POSIX terms). Add padding and an assertion, and clean up the checksum code.
MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D44226
show more ...
|
e81d55b4 | 16-Mar-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
tarfs: Support tar files which include file modes with permissions.
Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: kib Differential Revision: https://reviews.freebsd.org
tarfs: Support tar files which include file modes with permissions.
Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D39020
show more ...
|