jffs2.c 708 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) 2008 Karel Zak <kzak@redhat.com>
  3. *
  4. * Inspired by libvolume_id by
  5. * Kay Sievers <kay.sievers@vrfy.org>
  6. *
  7. * This file may be redistributed under the terms of the
  8. * GNU Lesser General Public License.
  9. */
  10. #include <stdio.h>
  11. #include <stdlib.h>
  12. #include <unistd.h>
  13. #include <string.h>
  14. #include <stdint.h>
  15. #include "bitops.h" /* swab16() */
  16. #include "superblocks.h"
  17. static int probe_jffs2(blkid_probe pr, const struct blkid_idmag *mag)
  18. {
  19. return 0;
  20. }
  21. const struct blkid_idinfo jffs2_idinfo =
  22. {
  23. .name = "jffs2",
  24. .usage = BLKID_USAGE_FILESYSTEM,
  25. .probefunc = probe_jffs2,
  26. .magics =
  27. {
  28. { .magic = "\x19\x85", .len = 2 },
  29. { .magic = "\x85\x19", .len = 2 },
  30. { NULL }
  31. }
  32. };