Package: hfsprogs / 332.25-10

hfsplus-tools-332.14-fix-uuid.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Author: Matthew Garrett <mjg59@codon.org.uk>
Description:
 Fix mkfs not creating UUIDs for new filesystems. Thanks to Lars Noodén
 for reporting the bug at <https://bugs.launchpad.net/bugs/737002>.
 This closes LP: #737002.
--- a/include/missing.h
+++ b/include/missing.h
@@ -72,7 +72,7 @@
 #define NAME_MAX	255
 
 /* Byteswap stuff */
-#define NXSwapHostLongToBig(x)		cpu_to_be64(x)
+#define NXSwapHostLongToBig(x)		cpu_to_be32(x)
 #define NXSwapBigShortToHost(x) 	be16_to_cpu(x)
 #define OSSwapBigToHostInt16(x)		be16_to_cpu(x)
 #define NXSwapBigLongToHost(x)		be32_to_cpu(x)
@@ -88,6 +88,9 @@
 #ifndef be32_to_cpu
 #define be32_to_cpu(x) bswap_32(x)
 #endif
+#ifndef cpu_to_be32
+#define cpu_to_be32(x) bswap_32(x)
+#endif
 #ifndef be64_to_cpu
 #define be64_to_cpu(x) bswap_64(x)
 #endif
@@ -102,6 +105,9 @@
 #ifndef be32_to_cpu
 #define be32_to_cpu(x)	(x)
 #endif
+#ifndef cpu_to_be32
+#define cpu_to_be32(x)	(x)
+#endif
 #ifndef be64_to_cpu
 #define be64_to_cpu(x)	(x)
 #endif