git.annexia.org
/
febootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
febootstrap/helper/init: Add translations for errno
[febootstrap.git]
/
helper
/
ext2.c
diff --git
a/helper/ext2.c
b/helper/ext2.c
index
fd67568
..
2395871
100644
(file)
--- a/
helper/ext2.c
+++ b/
helper/ext2.c
@@
-43,13
+43,13
@@
ext2_filsys fs;
*
* The downside of allocating a very large initial disk is that the
* fixed overhead of ext2 is larger (since ext2 calculates it based on
*
* The downside of allocating a very large initial disk is that the
* fixed overhead of ext2 is larger (since ext2 calculates it based on
- * the size of the disk). For a
1
GB disk the overhead is
- * approximately
1
6MB.
+ * the size of the disk). For a
4
GB disk the overhead is
+ * approximately
6
6MB.
*
* In future, make this configurable, or determine it from the input
* files (XXX).
*/
*
* In future, make this configurable, or determine it from the input
* files (XXX).
*/
-#define APPLIANCE_SIZE (1024*1024*1024)
+#define APPLIANCE_SIZE (
(off_t)4*
1024*1024*1024)
static void
ext2_start (const char *hostcpu, const char *appliance,
static void
ext2_start (const char *hostcpu, const char *appliance,
@@
-65,7
+65,7
@@
ext2_start (const char *hostcpu, const char *appliance,
if (fd == -1)
error (EXIT_FAILURE, errno, "open: %s", appliance);
if (fd == -1)
error (EXIT_FAILURE, errno, "open: %s", appliance);
- if (lseek (fd, APPLIANCE_SIZE - 1, SEEK_SET) == -1)
+ if (lseek (fd, APPLIANCE_SIZE - 1, SEEK_SET) ==
(off_t)
-1)
error (EXIT_FAILURE, errno, "lseek");
char c = 0;
error (EXIT_FAILURE, errno, "lseek");
char c = 0;