xfs
[Top] [All Lists]

[PATCH] uuid endian swapping fix

To: linux-xfs@xxxxxxxxxxx
Subject: [PATCH] uuid endian swapping fix
From: Christoph Hellwig <hch@xxxxxx>
Date: Fri, 17 Feb 2006 11:49:51 +0100
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
uu_timelow is a 32bit field and needs to be swapped with be32_to_cpu.


Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: xfs-2.6.x/fs/xfs/support/uuid.c
===================================================================
--- xfs-2.6.x.orig/fs/xfs/support/uuid.c        2006-02-16 15:11:30.000000000 
+0100
+++ xfs-2.6.x/fs/xfs/support/uuid.c     2006-02-16 16:04:07.000000000 +0100
@@ -50,7 +50,7 @@
 
        fsid[0] = (be16_to_cpu(uup->uu_clockseq) << 16) |
                   be16_to_cpu(uup->uu_timemid);
-       fsid[1] = be16_to_cpu(uup->uu_timelow);
+       fsid[1] = be32_to_cpu(uup->uu_timelow);
 }
 
 void


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] uuid endian swapping fix, Christoph Hellwig <=