search for: size_mb

Displaying 5 results from an estimated 5 matches for "size_mb".

Did you mean: size_gb
2009 Aug 03
0
[PATCH node-image] Fix edit-livecd to re-create ext2 filesystem each time
...uot; } +# Create new ext2 filesystem and copy contents of one into the other +# Size of ext2 filesystem is same as original size unless size parameter +# is passed in +create_ext2fs() { + local input_file=$1 + local input_dir=$2 + local output_file=$3 + local output_dir=$4 + local size_mb=$5 + + local size= + if [[ -n "$size_mb" ]]; then + size=$(( $size_mb * 1024 )) + fi + + echo ">>> Mounting old ext3fs" + mnt "-t ext2 $input_file -o ro,loop" $input_dir + ext_used=$(df $WDIR/$input_dir | tail -1 | awk '{print $3}&...
2009 Aug 20
3
[PATCH ovirt-node-image] fixes for edit-livecd
Patch set fixes issues with image size increase when using edit-livecd Also address issue with ext4 root fs
2014 Jan 28
0
[PATCH 05/10] examples: Update various examples to use new disk-create API.
...and formatting the disk image, please wait a moment ...\n"); fflush (stdout); - /* Create the output disk image: raw sparse. */ - fd = open (argv[1], O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0644); - if (fd == -1) { - perror (argv[1]); - exit (EXIT_FAILURE); - } - if (ftruncate (fd, SIZE_MB * 1024 * 1024) == -1) { - perror ("truncate"); - close (fd); - exit (EXIT_FAILURE); - } - if (close (fd) == -1) { - perror ("close"); - exit (EXIT_FAILURE); - } - /* Guestfs handle. */ g = guestfs_create (); if (g == NULL) { @@ -88,6 +72,10 @@ main (in...
2010 Apr 12
1
RFC: Advanced Storage Configuration
Hello, I'd like to put forward the following proposal for your appreciation, in order to add flexibility to the node configuration, so one can choose to store guest's images in a different device than the core OS/config/log/data today. In essence, proposal involves the following: - Addition of a new top level install menu called "Advanced Storage Configuration" where one can
2014 Jan 28
11
[PATCH 00/10] New API: disk-create for creating blank disks.
A lot of code runs 'qemu-img create' or 'truncate' to create blank disk images. In the past I resisted adding an API to do this, since it essentially duplicates what you can already do using other tools (ie. qemu-img). However this does simplify calling code quite a lot since qemu-img is somewhat error-prone to use (eg: don't try to create a disk called "foo:bar")