dir_fplus.h 1014 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * linux/fs/adfs/dir_fplus.h
  3. *
  4. * Copyright (C) 1999 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Structures of directories on the F+ format disk
  11. */
  12. #define ADFS_FPLUS_NAME_LEN 255
  13. #define BIGDIRSTARTNAME ('S' | 'B' << 8 | 'P' << 16 | 'r' << 24)
  14. #define BIGDIRENDNAME ('o' | 'v' << 8 | 'e' << 16 | 'n' << 24)
  15. struct adfs_bigdirheader {
  16. __u8 startmasseq;
  17. __u8 bigdirversion[3];
  18. __le32 bigdirstartname;
  19. __le32 bigdirnamelen;
  20. __le32 bigdirsize;
  21. __le32 bigdirentries;
  22. __le32 bigdirnamesize;
  23. __le32 bigdirparent;
  24. char bigdirname[1];
  25. };
  26. struct adfs_bigdirentry {
  27. __le32 bigdirload;
  28. __le32 bigdirexec;
  29. __le32 bigdirlen;
  30. __le32 bigdirindaddr;
  31. __le32 bigdirattr;
  32. __le32 bigdirobnamelen;
  33. __le32 bigdirobnameptr;
  34. };
  35. struct adfs_bigdirtail {
  36. __le32 bigdirendname;
  37. __u8 bigdirendmasseq;
  38. __u8 reserved[2];
  39. __u8 bigdircheckbyte;
  40. };