search for: appliance_size

Displaying 3 results from an estimated 3 matches for "appliance_size".

2015 Jul 13
2
[PATCH 1/2] utils: import parse_size from libguestfs
--- src/utils.ml | 21 +++++++++++++++++++++ src/utils.mli | 3 +++ 2 files changed, 24 insertions(+) diff --git a/src/utils.ml b/src/utils.ml index 3e81c21..7ae24bd 100644 --- a/src/utils.ml +++ b/src/utils.ml @@ -204,3 +204,24 @@ let compare_architecture a1 a2 = exit 1 in compare (index_of_architecture a1) (index_of_architecture a2) + +(* Parse a size field, eg. "10G".
2015 Jul 13
0
[PATCH 2/2] Add --size for ext2 filesystem
...ating 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 4GB disk the overhead is * approximately 66MB. - * - * In future, make this configurable, or determine it from the input - * files (XXX). *) -let appliance_size = 4L *^ 1024L *^ 1024L *^ 1024L +let default_appliance_size = 4L *^ 1024L *^ 1024L *^ 1024L -let build_ext2 debug basedir files modpath kernel_version appliance = +let build_ext2 debug basedir files modpath kernel_version appliance size = if debug >= 1 then printf "supermin: ext2:...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...g 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 4GB disk the overhead is - * approximately 66MB. - * - * In future, make this configurable, or determine it from the input - * files (XXX). - */ -#define APPLIANCE_SIZE ((off_t)4*1024*1024*1024) - -static void -ext2_start (const char *hostcpu, const char *appliance, - const char *modpath, const char *initrd) -{ - initialize_ext2_error_table (); - - /* Make the initrd. */ - ext2_make_initrd (modpath, initrd); - - /* Make the appliance sparse image. *...