From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] iso9660 UUID support by using the creation date/time
Date: Sun, 31 Aug 2008 15:47:46 +0200 [thread overview]
Message-ID: <20080831134746.GD2688@thorin> (raw)
In-Reply-To: <1220127336.21696.30.camel@fz.local>
On Sat, Aug 30, 2008 at 10:15:36PM +0200, Felix Zielcke wrote:
> Here's a patch which implements UUID support for the iso9660 filesystem,
> by using the creation date in the `superblock'.
Nice work :-)
> The specs say that it's allowed to contain only zeros but I think this
> shouldn't be a big problem.
I think this could indeed be a problem if it leads to collisions. If "all
zeroes" is detected, one could rise an error in uuid() function to prevent the
caller from taking the value into consideration.
> + *uuid = grub_malloc (sizeof (struct grub_iso9660_date) + sizeof ('\0'));
> + grub_sprintf (*uuid, "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%02u",
> + data->voldesc.created.year[0], data->voldesc.created.year[1],
> + data->voldesc.created.year[2], data->voldesc.created.year[3],
> + data->voldesc.created.month[0], data->voldesc.created.month[1],
> + data->voldesc.created.day[0], data->voldesc.created.day[1],
> + data->voldesc.created.hour[0], data->voldesc.created.hour[1],
> + data->voldesc.created.minute[0], data->voldesc.created.minute[1],
> + data->voldesc.created.second[0], data->voldesc.created.second[2],
> + data->voldesc.created.hundredth[0], data->voldesc.created.hundredth[1],
> + data->voldesc.created.offset);
Since the string contains human-readable information, may I suggest separating
it with dashes to make it easier to comprehend?
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2008-08-31 13:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 20:15 [PATCH] iso9660 UUID support by using the creation date/time Felix Zielcke
2008-08-30 21:08 ` Felix Zielcke
2008-08-31 13:47 ` Robert Millan [this message]
2008-08-31 14:27 ` Felix Zielcke
2008-08-31 15:06 ` Javier Martín
2008-08-31 16:03 ` Felix Zielcke
2008-08-31 16:56 ` Robert Millan
2008-08-31 17:23 ` Felix Zielcke
2008-08-31 18:40 ` Robert Millan
2008-08-31 18:55 ` Felix Zielcke
2008-09-05 17:02 ` Felix Zielcke
2008-09-06 11:11 ` Robert Millan
2008-09-06 11:17 ` Felix Zielcke
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=20080831134746.GD2688@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.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 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.