* [uml-devel] [PATCH] uml_mkcow depends on PAGE_SIZE
@ 2003-09-05 18:06 Matt Zimmerman
0 siblings, 0 replies; only message in thread
From: Matt Zimmerman @ 2003-09-05 18:06 UTC (permalink / raw)
To: user-mode-linux-devel
[-- Attachment #1.1: Type: text/plain, Size: 244 bytes --]
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).
--
- mdz
[-- Attachment #1.2: mkcow-pagesize.diff --]
[-- Type: text/plain, Size: 823 bytes --]
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
diff -u -u -r1.1.1.1 -r1.2
--- moo/uml_mkcow.c 3 Sep 2003 17:35:16 -0000 1.1.1.1
+++ moo/uml_mkcow.c 5 Sep 2003 17:06:47 -0000 1.2
@@ -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);
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-05 18:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-05 18:06 [uml-devel] [PATCH] uml_mkcow depends on PAGE_SIZE Matt Zimmerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox