search for: 291cb26

Displaying 5 results from an estimated 5 matches for "291cb26".

Did you mean: 2914,26
2014 Jan 28
0
[PATCH 05/10] examples: Update various examples to use new disk-create API.
...-1) == -1) + exit (EXIT_FAILURE); + /* Add the disk image to libguestfs. */ if (guestfs_add_drive_opts (g, "disk.img", GUESTFS_ADD_DRIVE_OPTS_FORMAT, "raw", /* raw format */ diff --git a/examples/mount-local.c b/examples/mount-local.c index 18970d0..291cb26 100644 --- a/examples/mount-local.c +++ b/examples/mount-local.c @@ -43,7 +43,7 @@ int main (int argc, char *argv[]) { guestfs_h *g; - int fd, r; + int r; char tempdir[] = "/tmp/mlXXXXXX"; pid_t pid; char *shell, *p; @@ -65,22 +65,6 @@ main (int argc, char *argv[])...
2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...ETERM *a[2]; > > + for (size = 0; r[size] != NULL; ++size) > + ; > + > + t = malloc (sizeof (ETERM *) * (size/2)); > + if (t == NULL) > + return make_error ("make_table"); Ditto. > diff --git a/examples/mount-local.c b/examples/mount-local.c > index 291cb26..8bd6401 100644 > --- a/examples/mount-local.c > +++ b/examples/mount-local.c > @@ -142,8 +142,13 @@ main (int argc, char *argv[]) > p = strrchr (shell, '/'); > if (p && strcmp (p+1, "bash") == 0) { > size_t len = 64 + strlen (shell...
2016 Mar 07
2
[PATCH v2] Use less stack.
...+ ; + + t = malloc (sizeof (ETERM *) * (size/2)); + if (t == NULL) + return make_error ("make_table"); + for (i = 0; r[i] != NULL; i += 2) { a[0] = erl_mk_string (r[i]); a[1] = erl_mk_string (r[i+1]); diff --git a/examples/mount-local.c b/examples/mount-local.c index 291cb26..8bd6401 100644 --- a/examples/mount-local.c +++ b/examples/mount-local.c @@ -142,8 +142,13 @@ main (int argc, char *argv[]) p = strrchr (shell, '/'); if (p && strcmp (p+1, "bash") == 0) { size_t len = 64 + strlen (shell); - char buf[len]; +...
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")
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.