]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/ukcpio: Add CPIO extraction functionality
authorAlexander Jung <a.jung@lancs.ac.uk>
Mon, 12 Apr 2021 10:38:24 +0000 (12:38 +0200)
committerUnikraft <monkey@unikraft.io>
Mon, 5 Jul 2021 04:47:27 +0000 (04:47 +0000)
commitd9f8a11fc6f984f8b0b85c7451e970b1b555dae4
tree8f17a2bb706adcf0eaa93f14fe59823a677e6b52
parent2353cda74f657af7b8754a496b4e06452ba3d323
lib/ukcpio: Add CPIO extraction functionality

Modeled after the FreeBSD libarchive:
https://github.com/freebsd/freebsd/blob/master/contrib/libarchive/libarchive/archive_read_support_format_cpio.c

The implementation is mostly complete except that it does not yet
support symlinks.

Signed-off-by: Robert Hrusecky <roberth@cs.utexas.edu>
Signed-off-by: Omar Jamil <omarj2898@gmail.com>
Signed-off-by: Sachin Beldona <sachinbeldona@utexas.edu>
Signed-off-by: Gabriel Mocanu <gabi.mocanu98@gmail.com>
Signed-off-by: Alexander Jung <a.jung@lancs.ac.uk>
Reviewed-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #179
lib/ukcpio/Makefile.uk
lib/ukcpio/cpio.c
lib/ukcpio/exportsyms.uk
lib/ukcpio/include/uk/cpio.h