Extract parse_cpio_entries() from KFS
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 6 Mar 2018 22:18:00 +0000 (14:18 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:31:44 +0000 (14:31 -0400)
commit4edef3181776fbf2f5b4d63b1aad30b119cad791
tree1d20f89ef5e02aec81c739e644d077dad2c3a868
parentd929ab38b1dd15dda0717bdfddce804c43f95f26
Extract parse_cpio_entries() from KFS

Moves it from KFS to cpio.c, so we can use it in other places.  I
attempted to update it a bit, including size checks.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/cpio.h
kern/lib/Kbuild
kern/lib/cpio.c [new file with mode: 0644]
kern/src/kfs.c