338-magic-add-cromfs.dpatch 981 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh /usr/share/dpatch/dpatch-run
  2. ## 338-magic-add-cromfs.dpatch by Werner Fink <werner@suse.de>
  3. ##
  4. ## DP: Adds new magic for CROM filesystem.
  5. @DPATCH@
  6. diff -Naurp file-4.24.orig/magic/Magdir/filesystems file-4.24/magic/Magdir/filesystems
  7. --- file-4.24.orig/magic/Magdir/filesystems 2008-05-04 14:12:49.000000000 +0000
  8. +++ file-4.24/magic/Magdir/filesystems 2008-05-21 09:40:38.000000000 +0000
  9. @@ -1289,3 +1289,15 @@
  10. # really le32 operation,destination,payloadsize (but quite predictable)
  11. # 01 00 00 00 00 00 00 c0 00 02 00 00
  12. 0 string \1\0\0\0\0\0\0\300\0\2\0\0 Marvell Libertas firmware
  13. +
  14. +# Type: CROM filesystem
  15. +# From: Werner Fink <werner@suse.de>
  16. +0 string CROMFS CROMFS
  17. +>6 string >\0 \b version %2.2s,
  18. +>8 ulequad >0 \b block data at %lld,
  19. +>16 ulequad >0 \b fblock table at %lld,
  20. +>24 ulequad >0 \b inode table at %lld,
  21. +>32 ulequad >0 \b root at %lld,
  22. +>40 ulelong >0 \b fblock size = %ld,
  23. +>44 ulelong >0 \b block size = %ld,
  24. +>48 ulequad >0 \b bytes = %lld