From 6351872732fce77186f401050eee92c7c3aa3461 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 20 May 2023 17:04:15 +0200 Subject: libtar: add a dir_iterator_t implementation for tar files The existing istream_t wrapper is mered into this one as well, we can open the files via the iterators open_file_ro function. Unit tests and tar2sqfs are modified accordingly. Signed-off-by: David Oberhollenzer --- lib/tar/test/data/CREDITS | 4 ++-- lib/tar/test/data/istream/sparse.tar | Bin 33792 -> 0 bytes lib/tar/test/data/iterator/sparse.tar | Bin 0 -> 33792 bytes 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 lib/tar/test/data/istream/sparse.tar create mode 100644 lib/tar/test/data/iterator/sparse.tar (limited to 'lib/tar/test/data') diff --git a/lib/tar/test/data/CREDITS b/lib/tar/test/data/CREDITS index 1e7fb32..4c20256 100644 --- a/lib/tar/test/data/CREDITS +++ b/lib/tar/test/data/CREDITS @@ -33,9 +33,9 @@ The following addtional files have been added: Contributed in GitHub issue #64. A tar ball that contains a hard link where the 100 byte target field is completely filled without containing a null-terminator. - - istream/sparse.tar + - iterator/sparse.tar Derived from sparse/gnu.tar and contains some test data for testing the - tar istream implementation. + tar iterator implementation. - write/simple.tar Created using the tar writer to verify that it works as intended. Used for testing the tar writer to check if it still produces identical diff --git a/lib/tar/test/data/istream/sparse.tar b/lib/tar/test/data/istream/sparse.tar deleted file mode 100644 index 7f4700d..0000000 Binary files a/lib/tar/test/data/istream/sparse.tar and /dev/null differ diff --git a/lib/tar/test/data/iterator/sparse.tar b/lib/tar/test/data/iterator/sparse.tar new file mode 100644 index 0000000..7f4700d Binary files /dev/null and b/lib/tar/test/data/iterator/sparse.tar differ -- cgit v1.2.3