aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-30 18:53:25 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-30 18:53:25 +0200
commit55568b1437f4cc6634c8a6e10c96bb26256176d2 (patch)
tree84fedb5c01d6ef17dc5f455214857fc8bb11ebb4 /tests
parentfbd5e80aedd354c010021145dbea9bd0b29563b7 (diff)
libtar: clarify actual size vs on-disk record size
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/tar_sparse_gnu.c6
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);