You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  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.
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=UTF-8
  6. Content-Transfer-Encoding: 8bit
  7. Fix mkfs not creating UUIDs for new filesystems.
  8. Thanks to Lars Noodén for reporting the bug at
  9. <https://bugs.launchpad.net/bugs/737002>.
  10. This closes LP: #737002.
  11. ---
  12. include/missing.h | 8 +++++++-
  13. 1 file changed, 7 insertions(+), 1 deletion(-)
  14. --- a/include/missing.h
  15. +++ b/include/missing.h
  16. @@ -71,7 +71,7 @@
  17. #define NAME_MAX 255
  18. /* Byteswap stuff */
  19. -#define NXSwapHostLongToBig(x) cpu_to_be64(x)
  20. +#define NXSwapHostLongToBig(x) cpu_to_be32(x)
  21. #define NXSwapBigShortToHost(x) be16_to_cpu(x)
  22. #define OSSwapBigToHostInt16(x) be16_to_cpu(x)
  23. #define NXSwapBigLongToHost(x) be32_to_cpu(x)
  24. @@ -87,6 +87,9 @@
  25. #ifndef be32_to_cpu
  26. #define be32_to_cpu(x) bswap_32(x)
  27. #endif
  28. +#ifndef cpu_to_be32
  29. +#define cpu_to_be32(x) bswap_32(x)
  30. +#endif
  31. #ifndef be64_to_cpu
  32. #define be64_to_cpu(x) bswap_64(x)
  33. #endif
  34. @@ -101,6 +104,9 @@
  35. #ifndef be32_to_cpu
  36. #define be32_to_cpu(x) (x)
  37. #endif
  38. +#ifndef cpu_to_be32
  39. +#define cpu_to_be32(x) (x)
  40. +#endif
  41. #ifndef be64_to_cpu
  42. #define be64_to_cpu(x) (x)
  43. #endif