File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ fs2tar: LDFLAGS += -larchive
6060lklfuse : LDFLAGS += -lfuse
6161ifneq (,$(filter $(OUTPUT_FORMAT ) ,elf64-x86-64-freebsd) )
6262cptofs : LDFLAGS += -largp
63+ fs2tar : LDFLAGS += -largp
6364endif
6465cpfromfs : cptofs
6566 if ! [ -e $@ ]; then ln -s $< $@ ; fi
Original file line number Diff line number Diff line change 1+ #ifdef __FreeBSD__
2+ #include <sys/param.h>
3+ #endif
4+
15#include <stdio.h>
26#include <time.h>
37#include <argp.h>
@@ -351,11 +355,12 @@ int main(int argc, char **argv)
351355 goto out ;
352356 }
353357
354- disk_id = lkl_disk_add (bs );
355- if (disk_id < 0 ) {
358+ ret = lkl_disk_add (bs );
359+ if (ret < 0 ) {
356360 fprintf (stderr , "can't add disk: %s\n" , lkl_strerror (ret ));
357361 goto out_close ;
358362 }
363+ disk_id = ret ;
359364
360365 lkl_start_kernel (& lkl_host_ops , 10 * 1024 * 1024 , "" );
361366
You can’t perform that action at this time.
0 commit comments