From: Matt Zimmerman <mdz@debian.org>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [PATCH] uml_mkcow depends on PAGE_SIZE
Date: Fri, 5 Sep 2003 14:06:07 -0400 [thread overview]
Message-ID: <20030905180607.GA1112@alcor.net> (raw)
[-- 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 --]
reply other threads:[~2003-09-05 18:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030905180607.GA1112@alcor.net \
--to=mdz@debian.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).