1 From: Matthew Garrett <mjg59@codon.org.uk>
2 Date: Thu, 24 Oct 2013 01:11:22 -0200
3 Subject: Fix mkfs not creating UUIDs for new filesystems.
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
8 Fix mkfs not creating UUIDs for new filesystems.
10 Thanks to Lars Noodén for reporting the bug at
11 <https://bugs.launchpad.net/bugs/737002>.
13 This closes LP: #737002.
15 include/missing.h | 8 +++++++-
16 1 file changed, 7 insertions(+), 1 deletion(-)
18 diff --git a/include/missing.h b/include/missing.h
19 index 0a859c4..f50e8fb 100644
20 --- a/include/missing.h
21 +++ b/include/missing.h
26 -#define NXSwapHostLongToBig(x) cpu_to_be64(x)
27 +#define NXSwapHostLongToBig(x) cpu_to_be32(x)
28 #define NXSwapBigShortToHost(x) be16_to_cpu(x)
29 #define OSSwapBigToHostInt16(x) be16_to_cpu(x)
30 #define NXSwapBigLongToHost(x) be32_to_cpu(x)
33 #define be32_to_cpu(x) bswap_32(x)
36 +#define cpu_to_be32(x) bswap_32(x)
39 #define be64_to_cpu(x) bswap_64(x)
43 #define be32_to_cpu(x) (x)
46 +#define cpu_to_be32(x) (x)
49 #define be64_to_cpu(x) (x)