diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-06-30 18:53:25 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-06-30 18:53:25 +0200 |
commit | 55568b1437f4cc6634c8a6e10c96bb26256176d2 (patch) | |
tree | 84fedb5c01d6ef17dc5f455214857fc8bb11ebb4 /tests/tar_sparse_gnu.c | |
parent | fbd5e80aedd354c010021145dbea9bd0b29563b7 (diff) |
libtar: clarify actual size vs on-disk record size
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/tar_sparse_gnu.c')
-rw-r--r-- | tests/tar_sparse_gnu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tar_sparse_gnu.c b/tests/tar_sparse_gnu.c index d4d65d3..4c3ee31 100644 --- a/tests/tar_sparse_gnu.c +++ b/tests/tar_sparse_gnu.c @@ -40,7 +40,8 @@ int main(void) assert(hdr.sb.st_uid == 01750); assert(hdr.sb.st_gid == 01750); assert(hdr.sb.st_size == 524288); - assert(hdr.sparse_size == 8192); + assert(hdr.actual_size == 524288); + assert(hdr.record_size == 8192); assert(strcmp(hdr.name, "input.bin") == 0); assert(!hdr.unknown_record); @@ -70,7 +71,8 @@ int main(void) assert(hdr.sb.st_uid == 01750); assert(hdr.sb.st_gid == 01750); assert(hdr.sb.st_size == 2097152); - assert(hdr.sparse_size == 32768); + assert(hdr.actual_size == 2097152); + assert(hdr.record_size == 32768); assert(strcmp(hdr.name, "input.bin") == 0); assert(!hdr.unknown_record); |