| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: xfsdump failure - failed to get bulkstat information for root node, Eric Sandeen |
|---|---|
| Next by Date: | Re: kernel oops: trying to mount a corrupted xfs partition (2.6.16-rc3), Jan Engelhardt |
| Previous by Thread: | TAKE 949659 - dmapi module, Nathan Scott |
| Next by Thread: | questions about project quota, Chris Stromsoe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |