From 55568b1437f4cc6634c8a6e10c96bb26256176d2 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 30 Jun 2019 18:53:25 +0200 Subject: libtar: clarify actual size vs on-disk record size Signed-off-by: David Oberhollenzer --- tests/tar_sparse_gnu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3