search for: run_qemu_img_dd

Displaying 6 results from an estimated 6 matches for "run_qemu_img_dd".

2020 Aug 13
2
[PATCH v3] appliance: extract UUID from QCOW2 disk image
.../** + * Read the first 256k bytes of the in_file with L<qemu-img(1)> command + * and write them into the out_file. That may be useful to get UUID of + * the QCOW2 disk image with further L<file(1)> command. + * The function returns zero if successful, otherwise -1. + */ +static int +run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) +{ + CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); + int r; + + guestfs_int_cmd_add_arg (cmd, "qemu-img"); + guestfs_int_cmd_add_arg (cmd, "dd"); + guestfs_int_cmd_add_arg_format (cmd, "if=%s&qu...
2020 Aug 12
2
[PATCH v2] appliance: extract UUID from QCOW2 disk image
.../** + * Read the first 256k bytes of the in_file with L<qemu-img(1)> command + * and write them into the out_file. That may be useful to get UUID of + * the QCOW2 disk image with further L<file(1)> command. + * The function returns zero if successful, otherwise -1. + */ +static int +run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) +{ + CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); + int r; + + guestfs_int_cmd_add_arg (cmd, "qemu-img"); + guestfs_int_cmd_add_arg (cmd, "dd"); + guestfs_int_cmd_add_arg_format (cmd, "if=%s&qu...
2020 Aug 12
0
[PATCH] appliance: extract UUID from QCOW2 disk image
.../** + * Read the first 256k bytes of the in_file with L<qemu-img(1)> command + * and write them into the out_file. That may be useful to get UUID of + * the QCOW2 disk image with further L<file(1)> command. + * The function returns zero if successful, otherwise -1. + */ +static int +run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) +{ + CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); + int r; + + guestfs_int_cmd_add_arg (cmd, "qemu-img"); + guestfs_int_cmd_add_arg (cmd, "dd"); + guestfs_int_cmd_add_arg_format (cmd, "if=%s&qu...
2020 Aug 13
0
Re: [PATCH v3] appliance: extract UUID from QCOW2 disk image
...k bytes of the in_file with L<qemu-img(1)> command > + * and write them into the out_file. That may be useful to get UUID of > + * the QCOW2 disk image with further L<file(1)> command. > + * The function returns zero if successful, otherwise -1. > + */ > +static int > +run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) > +{ > + CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); > + int r; > + > + guestfs_int_cmd_add_arg (cmd, "qemu-img"); > + guestfs_int_cmd_add_arg (cmd, "dd"); > + guestfs_int_cmd_...
2020 Aug 12
0
Re: [PATCH] appliance: extract UUID from QCOW2 disk image
...ith L<qemu-img(1)> command > >+ * and write them into the out_file. That may be useful to get UUID of > >+ * the QCOW2 disk image with further L<file(1)> command. > >+ * The function returns zero if successful, otherwise -1. > >+ */ > >+static int > >+run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) > >+{ > >+ CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); > >+ int r; > >+ > >+ guestfs_int_cmd_add_arg (cmd, "qemu-img"); > >+ guestfs_int_cmd_add_arg (cmd, "dd");...
2020 Aug 12
0
Re: [PATCH] appliance: extract UUID from QCOW2 disk image
...command > >>+ * and write them into the out_file. That may be useful to get UUID of > >>+ * the QCOW2 disk image with further L<file(1)> command. > >>+ * The function returns zero if successful, otherwise -1. > >>+ */ > >>+static int > >>+run_qemu_img_dd (guestfs_h *g, const char *in_file, char *out_file) > >>+{ > >>+  CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); > >>+  int r; > >>+ > >>+  guestfs_int_cmd_add_arg (cmd, "qemu-img"); > >>+  guestfs_int_cmd_add_arg...