From: Thomas Schmitt via Grub-devel <grub-devel@gnu.org>
To: grub-devel@gnu.org
Cc: Thomas Schmitt <scdbackup@gmx.net>
Subject: How to test grub_iso9660_uuid from userland ?
Date: Mon, 01 Jul 2024 16:08:05 +0200 [thread overview]
Message-ID: <6473304583545531659@scdbackup.webframe.org> (raw)
Hi,
i found a wrong word in an error message of grub-core/fs/iso9660.c
function grub_iso9660_uuid():
grub_error (GRUB_ERR_BAD_NUMBER, "no creation date in filesystem to generate UUID");
The missing entity would be the modification date
data->voldesc.modified
rather than the creation date
data->voldesc.created
The fix is obviously simple. But i have no idea how to get the code
execution to this function for testing.
An ISO with 0 date would be easy to fake. A use case known to me is in
GRUB configuration with command "search" and option "--fs-uuid".
In grub-fstest.c i see no opportunity to perform "search".
Any idea how to test grub_iso9660_uuid() from userland of a running
GNU/Linux ?
Have a nice day :)
Thomas
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
next reply other threads:[~2024-07-01 14:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-01 14:08 Thomas Schmitt via Grub-devel [this message]
2024-07-01 14:30 ` How to test grub_iso9660_uuid from userland ? Vladimir 'phcoder' Serbinenko
2024-07-01 15:39 ` Thomas Schmitt via Grub-devel
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=6473304583545531659@scdbackup.webframe.org \
--to=grub-devel@gnu.org \
--cc=scdbackup@gmx.net \
/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.