All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bug in UUID determiniation in fs/fat.c
@ 2009-01-20 23:31 Daniel Mierswa
  2009-01-26  4:36 ` Pavel Roskin
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Mierswa @ 2009-01-20 23:31 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

I found that during playing with ls -a. The UUID needs to be
right-shifted 16 times since it's a 32bit value and we need two 16bit
values. :)

-- 
Mierswa, Daniel

If you still don't like it, that's ok: that's why I'm boss. I simply
know better than you do.
               --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22

[-- Attachment #2: fs_fat_wrong_uuid.patch --]
[-- Type: text/plain, Size: 449 bytes --]

Index: fs/fat.c
===================================================================
--- fs/fat.c	(revision 1952)
+++ fs/fat.c	(working copy)
@@ -841,7 +841,7 @@
   if (data)
     {
       *uuid = grub_malloc (sizeof ("xxxx-xxxx"));
-      grub_sprintf (*uuid, "%04x-%04x", (grub_uint16_t) (data->uuid >> 8),
+      grub_sprintf (*uuid, "%04x-%04x", (grub_uint16_t) (data->uuid >> 16),
 		    (grub_uint16_t) data->uuid);
     }
   else

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

* Re: [PATCH] Bug in UUID determiniation in fs/fat.c
  2009-01-20 23:31 [PATCH] Bug in UUID determiniation in fs/fat.c Daniel Mierswa
@ 2009-01-26  4:36 ` Pavel Roskin
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Roskin @ 2009-01-26  4:36 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, 2009-01-21 at 00:31 +0100, Daniel Mierswa wrote:
> I found that during playing with ls -a. The UUID needs to be
> right-shifted 16 times since it's a 32bit value and we need two 16bit
> values. :)

Applied.  Thank you!

-- 
Regards,
Pavel Roskin



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

end of thread, other threads:[~2009-01-26 17:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-20 23:31 [PATCH] Bug in UUID determiniation in fs/fat.c Daniel Mierswa
2009-01-26  4:36 ` Pavel Roskin

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.