[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc bug causes parted to write bad GPT entries

From: Andreas Dilger
Subject: Re: gcc bug causes parted to write bad GPT entries
Date: Fri, 15 Mar 2002 17:55:07 -0700
User-agent: Mutt/1.3.27i

On Mar 16, 2002  11:30 +1100, Andrew Clausen wrote:
> On Fri, Mar 15, 2002 at 04:04:54PM -0700, Andreas Dilger wrote:
> > > > This is untested, but I think you'll get the idea.  This should be
> > > > much better because it works independent of the host's byte-order and
> > > > doesn't require using gcc-only extensions to C.  It will also work
> > > > around the compiler bug until that gets fixed.
> > 
> > Please see the libuuid code to do the same.  It has "pack" and "unpack"
> > functions which handle this nicely.
> Are you talking about uuid_[un]parse()?
> They only (un)parse to/from strings, which doesn't help much with
> extracting info out of the uuid.

No, in the libuuid code there are uuid_pack() and uuid_unpack() calls.
No man pages I guess (my bad).

void uuid_pack(const struct uuid *uu, uuid_t ptr)
void uuid_unpack(const uuid_t in, struct uuid *uu)

Cheers, Andreas
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

reply via email to

[Prev in Thread] Current Thread [Next in Thread]