From: Karel Zak <kzak@redhat.com>
To: "Aurélien Lajoie" <orel@melix.net>
Cc: Util-Linux <util-linux@vger.kernel.org>,
Stanislav Brabec <sbrabec@suse.cz>,
"Trapp, Michael" <michael.trapp@sap.com>
Subject: Re: libuuid related tasks for next v2.39
Date: Tue, 12 Apr 2022 13:44:07 +0200 [thread overview]
Message-ID: <20220412114407.tbosbcffkshdklm4@ws.net.home> (raw)
In-Reply-To: <CAA0A08VmzKTzFCEqnFP9tw50zgx4iPsif_BktuRSAvfm3hH52w@mail.gmail.com>
On Tue, Apr 12, 2022 at 01:15:56PM +0200, Aurélien Lajoie wrote:
> On Tue, Apr 12, 2022 at 12:35 PM Karel Zak <kzak@redhat.com> wrote:
> >
> > On Fri, Apr 01, 2022 at 11:49:17AM +0200, Aurélien Lajoie wrote:
> > > What about nice helpers to get fast access to the different part of the
> > > uuid?
> >
> > I'm not sure if I understand. What do you mean with the helpers?
>
> Accessing the different part of the uuid
> version
> time_low
> time_mid
> time_hi_and_version
> clock_seq_hi_and_res clock_seq_low
> node
This is obvious, I'm trying to understand "Accessing". Do you mean
unparse the specified parts or update/set it? For what use-case?
We have something like this for command line (misc-utils/uuidparse.c).
$ uuidparse $(uuidgen --time)
UUID VARIANT TYPE TIME
970f197e-ba55-11ec-aa93-43a3097bca4a DCE time-based 2022-04-12 13:42:11,097843+02:00
Do you mean anything like;
uuid_time_get_version(uuidstr);
uuid_time_get_clock_seq()
...
or the same but for already parsed uuid (uuid_t)?
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
prev parent reply other threads:[~2022-04-12 12:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-01 9:21 libuuid related tasks for next v2.39 Karel Zak
2022-04-11 13:36 ` Stanislav Brabec
2022-04-12 11:36 ` Karel Zak
[not found] ` <AM9PR02MB70447FD1C9D326ABAF7ABFE8F9E69@AM9PR02MB7044.eurprd02.prod.outlook.com>
2022-04-11 13:45 ` Stanislav Brabec
[not found] ` <CAA0A08XAF2eWScVKQ1Jd0vUPfHzZw8PAtiS-jRbom0EvRQ+Zsg@mail.gmail.com>
2022-04-12 10:34 ` Karel Zak
[not found] ` <CAA0A08VmzKTzFCEqnFP9tw50zgx4iPsif_BktuRSAvfm3hH52w@mail.gmail.com>
2022-04-12 11:44 ` Karel Zak [this message]
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=20220412114407.tbosbcffkshdklm4@ws.net.home \
--to=kzak@redhat.com \
--cc=michael.trapp@sap.com \
--cc=orel@melix.net \
--cc=sbrabec@suse.cz \
--cc=util-linux@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox