uml_mkcow depends on PAGE_SIZE
PATCH 1/1 uml_mkcow depends on PAGE_SIZE
This caused uml_mkcow to fail to build on several Debian architectures. It is also my understanding that the page size can be different for different systems within an architecture (and so needs to be determined at runtime).
Signature · 1 line
- mdz
Index: moo/uml_mkcow.c
===================================================================
RCS file: /var/lib/cvs/debian/packages/uml-utilities/moo/uml_mkcow.c,v retrieving revision 1.1.1.1
retrieving revision 1.2
uml_mkcow.c +2 -1
@@ -2,6 +2,7 @@#include <stdlib.h> #include <string.h> #include <fcntl.h> +#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/user.h>
@@ -57,7 +58,7 @@exit (1 ); } -if (init_cow_file (fd, cow_file, backing_file,512 ,PAGE_SIZE , +if (init_cow_file (fd, cow_file, backing_file,512 ,sysconf (_SC_PAGESIZE), &bitmap_offset_out, &bitmap_len_out, &data_offset_out)){perror ("write_cow_header" );exit (1 );