search for: get_root_uuid

Displaying 7 results from an estimated 7 matches for "get_root_uuid".

2020 Aug 13
2
[PATCH v3] appliance: extract UUID from QCOW2 disk image
For the appliance of the QCOW2 format, the function get_root_uuid() fails to get the UUID of the disk image. In this case, let us read the first 256k bytes of the disk image with the 'qemu-img dd' command. Then pass the read block to the 'file' command. Suggested-by: Denis V. Lunev <den@openvz.org> Signed-off-by: Andrey Shinkevich <andr...
2020 Aug 12
2
[PATCH v2] appliance: extract UUID from QCOW2 disk image
.../appliance-kcmdline.c b/lib/appliance-kcmdline.c index fbeb4f4..c78524b 100644 --- a/lib/appliance-kcmdline.c +++ b/lib/appliance-kcmdline.c @@ -71,7 +71,7 @@ read_uuid (guestfs_h *g, void *retv, const char *line, size_t len) * The L<file(1)> command does the hard work. */ static char * -get_root_uuid (guestfs_h *g, const char *appliance) +do_get_root_uuid (guestfs_h *g, const char *appliance) { CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); char *ret = NULL; @@ -96,6 +96,74 @@ get_root_uuid (guestfs_h *g, const char *appliance) } /** + * Read the first 256k byte...
2020 Aug 13
0
Re: [PATCH v3] appliance: extract UUID from QCOW2 disk image
On Thu, Aug 13, 2020 at 07:48:52AM +0300, Andrey Shinkevich wrote: > For the appliance of the QCOW2 format, the function get_root_uuid() > fails to get the UUID of the disk image. > In this case, let us read the first 256k bytes of the disk image with > the 'qemu-img dd' command. Then pass the read block to the 'file' > command. > > Suggested-by: Denis V. Lunev <den@openvz.org> > Signed...
2020 Aug 12
0
[PATCH] appliance: extract UUID from QCOW2 disk image
.../appliance-kcmdline.c b/lib/appliance-kcmdline.c index 211cc46..3bb8bcd 100644 --- a/lib/appliance-kcmdline.c +++ b/lib/appliance-kcmdline.c @@ -71,7 +71,7 @@ read_uuid (guestfs_h *g, void *retv, const char *line, size_t len) * The L<file(1)> command does the hard work. */ static char * -get_root_uuid (guestfs_h *g, const char *appliance) +do_get_root_uuid (guestfs_h *g, const char *appliance) { CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); char *ret = NULL; @@ -96,6 +96,74 @@ get_root_uuid (guestfs_h *g, const char *appliance) } /** + * Read the first 256k byte...
2020 Aug 12
0
Re: [PATCH] appliance: extract UUID from QCOW2 disk image
...b8bcd 100644 > >--- a/lib/appliance-kcmdline.c > >+++ b/lib/appliance-kcmdline.c > >@@ -71,7 +71,7 @@ read_uuid (guestfs_h *g, void *retv, const char *line, size_t len) > > * The L<file(1)> command does the hard work. > > */ > > static char * > >-get_root_uuid (guestfs_h *g, const char *appliance) > >+do_get_root_uuid (guestfs_h *g, const char *appliance) > > { > > CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); > > char *ret = NULL; > >@@ -96,6 +96,74 @@ get_root_uuid (guestfs_h *g, const char *a...
2020 Aug 12
0
Re: [PATCH] appliance: extract UUID from QCOW2 disk image
...- a/lib/appliance-kcmdline.c > >>+++ b/lib/appliance-kcmdline.c > >>@@ -71,7 +71,7 @@ read_uuid (guestfs_h *g, void *retv, const char *line, size_t len) > >>   * The L<file(1)> command does the hard work. > >>   */ > >>  static char * > >>-get_root_uuid (guestfs_h *g, const char *appliance) > >>+do_get_root_uuid (guestfs_h *g, const char *appliance) > >>  { > >>    CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); > >>    char *ret = NULL; > >>@@ -96,6 +96,74 @@ get_root_uuid (guestfs...
2020 Mar 05
5
[PATCH v2 0/4] daemon: Translate device names if Linux device is unstable (RHBZ#1804207).
v1 was here: https://www.redhat.com/archives/libguestfs/2020-February/msg00220.html This patch series is a little bit better. It's still a bit of a hack. The _real_ fix for this is outlined in the TODO file (see patch 1) but that requires a lot more work than we could do before 1.42 is released, unless we delay 1.42 for a lot longer. I'm hoping with this to have something which works