[dpdk-dev] [PATCH v4 05/10] app/test: support resources archived by tar

2016-06-13 Thread Jan Viktorin
On Mon, 13 Jun 2016 16:40:09 +0200 Thomas Monjalon wrote: > 2016-06-13 10:12, Jan Viktorin: > > +static int do_copy(struct archive *r, struct archive *w) > > +{ > > + const void *buf; > > + size_t len; > > + off_t off; > > + int ret; > > + > > + while (1) { > > + ret =

[dpdk-dev] [PATCH v4 05/10] app/test: support resources archived by tar

2016-06-13 Thread Thomas Monjalon
2016-06-13 10:12, Jan Viktorin: > +static int do_copy(struct archive *r, struct archive *w) > +{ > + const void *buf; > + size_t len; > + off_t off; > + int ret; > + > + while (1) { > + ret = archive_read_data_block(r, , , ); There is an error in 32-bit

[dpdk-dev] [PATCH v4 05/10] app/test: support resources archived by tar

2016-06-13 Thread Jan Viktorin
When a more complex resource (a file hierarchy) is needed, packing every single file as a single resource would be very ineffective. For that purpose, it is possible to pack the files into a tar archive, extract it before test from the resource and finally clean up all the created files. This