0011-btrfs.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. Author: Russell Coker <russell@coker.com.au>
  2. Description: Adding updated magics for BTRFS (Closes: #663454).
  3. diff -Naurp file.orig/magic/Magdir/filesystems file/magic/Magdir/filesystems
  4. --- file.orig/magic/Magdir/filesystems 2013-03-13 16:54:43.588452886 +0100
  5. +++ file/magic/Magdir/filesystems 2013-03-13 17:15:59.659044842 +0100
  6. @@ -1894,12 +1894,21 @@
  7. >>0x10060 string >\0 lockproto %s)
  8. # BTRFS
  9. -0x10040 string _BHRfS_M BTRFS Filesystem
  10. ->0x1012b string >\0 (label "%s",
  11. ->0x10090 lelong x sectorsize %d,
  12. ->0x10094 lelong x nodesize %d,
  13. ->0x10098 lelong x leafsize %d)
  14. -
  15. +# Russell Coker <russell@coker.com.au>
  16. +0x10040 string _BHRfS_M BTRFS Filesystem
  17. +>0x1012b string >\0 label "%s",
  18. +>0x10090 lelong x sectorsize %d,
  19. +>0x10094 lelong x nodesize %d,
  20. +>0x10098 lelong x leafsize %d,
  21. +>0x10020 belong x UUID=%8x-
  22. +>0x10024 beshort x \b%4x-
  23. +>0x10026 beshort x \b%4x-
  24. +>0x10028 beshort x \b%4x-
  25. +>0x1002a beshort x \b%4x
  26. +>0x1002c belong x \b%8x,
  27. +>0x10078 lequad x %lld/
  28. +>0x10070 lequad x \b%lld bytes used,
  29. +>0x10088 lequad x %lld devices
  30. # dvdisaster's .ecc
  31. # From: "Nelson A. de Oliveira" <naoliv@gmail.com>