From: Christoph Egger <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Owen Smith <owen.smith@citrix.com>,
Gianni Tedesco <gianni.tedesco@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: Re: [PATCH, v4]: xl: randomly generate UUID's
Date: Wed, 1 Sep 2010 14:22:39 +0200 [thread overview]
Message-ID: <201009011422.41015.Christoph.Egger@amd.com> (raw)
In-Reply-To: <201008301451.25381.Christoph.Egger@amd.com>
On Monday 30 August 2010 14:51:23 Christoph Egger wrote:
> On Friday 27 August 2010 19:34:00 Gianni Tedesco wrote:
> > Changes since v3:
> > - Fix LIBXL_UUID_BYTES on NetBSD. Note that the code assumes
> > uint8_t[16] to always be interchangeable with libxl_uuid_t.
uuid_t is a struct in NetBSD. It is defined as:
#define __UUID_NODE_LEN 6 /* Length of a node address (an IEEE 802 address).
*/
struct uuid {
uint32_t time_low;
uint16_t time_mid;
uint16_t time_hi_and_version;
uint8_t clock_seq_hi_and_reserved;
uint8_t clock_seq_low;
uint8_t node[_UUID_NODE_LEN];
};
typedef struct uuid uuid_t;
> > - Return error messages when uuid_parse fails, spotted by Owen Smith
> > - Implement "uuid" parameter in xl and exit with an error if parse
> > fails
> > Changes since v2:
> > - Re-based to remove orthogonal concern of UUID string formatting fixed
> > in 22001:0b6f82eaaea9 "xl: make libxl_uuid2string internal to
> > libxenlight" - Incorporated Christoph Egger's suggestions
>
> I will test this.
gcc produces several warnings "return from incompatible pointer type"
and errors "cannot convert to a pointer type".
libxl_uuid.h:147: warning: return from incompatible pointer type
xl_cmdimpl.c:419: error: cannot convert to a pointer type
The assumption that uuid_t and uint8_t[16] being interchangeable
is wrong.
According to the manpage
(http://netbsd.gw.com/cgi-bin/man-cgi?uuid++NetBSD-current),
what you probably want is uuid_enc_* and uuid_dec_* ?
The question is do want the binary representation in little endian
or big endian format?
Christoph
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
next prev parent reply other threads:[~2010-09-01 12:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-27 17:34 [PATCH, v4]: xl: randomly generate UUID's Gianni Tedesco
2010-08-30 12:51 ` Christoph Egger
2010-09-01 12:22 ` Christoph Egger [this message]
2010-09-01 13:36 ` Ian Jackson
2010-09-01 13:59 ` Christoph Egger
2010-09-01 15:26 ` Gianni Tedesco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201009011422.41015.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=gianni.tedesco@citrix.com \
--cc=owen.smith@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.