All of lore.kernel.org
 help / color / mirror / Atom feed
* How to test grub_iso9660_uuid from userland ?
@ 2024-07-01 14:08 Thomas Schmitt via Grub-devel
  2024-07-01 14:30 ` Vladimir 'phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Schmitt via Grub-devel @ 2024-07-01 14:08 UTC (permalink / raw)
  To: grub-devel; +Cc: Thomas Schmitt

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-01 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01 14:08 How to test grub_iso9660_uuid from userland ? Thomas Schmitt via Grub-devel
2024-07-01 14:30 ` Vladimir 'phcoder' Serbinenko
2024-07-01 15:39   ` Thomas Schmitt via Grub-devel

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.