diskpar.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (C) Dataindustrier DIAB AB, Sweden, 1986
  3. */
  4. /*
  5. * Structures used by filehandler
  6. * SCCSID(@(#) diskpar.h 5.2.2.1)
  7. */
  8. #ifndef _rhSYS_FS_DNIX_DISKPAR
  9. #define _rhSYS_FS_DNIX_DISKPAR
  10. /*
  11. * Disk definition equs
  12. */
  13. /*
  14. * Fixed inode numbers
  15. */
  16. #define INOBDSP ((ino_t)1) /* i number of badspot file */
  17. #define INOROOT ((ino_t)2) /* i number of all roots */
  18. #define INOLIST ((ino_t)3) /* i number of inode list */
  19. #define INOBITM ((ino_t)4) /* i number of bitmap file */
  20. #define INOVDSF ((ino_t)5) /* i number of volume description file */
  21. #define INO_LAST INOVDSF /* Last of the fixed inode numbers */
  22. /*
  23. * First part of a file system volume
  24. */
  25. #define BOOTREC ((daddr_t)0) /* First 512 bytes set aside for booting */
  26. #define SYSFPTR ((daddr_t)512) /* 512 bytes for pointer record */
  27. #define DRVPAR ((daddr_t)1024) /* 512 bytes set aside for disk driver use */
  28. #define VUTIL ((daddr_t)1536) /* 512 bytes reserved */
  29. #define LOCFREE ((daddr_t)2048) /* possible start of file system */
  30. /*
  31. * structure of the pointer record at SYSFPTR
  32. */
  33. struct sysfptr {
  34. daddr_t vdsp; /* Pointer to volume descriptor block */
  35. daddr_t vdspn; /* 1:s complement of previous item */
  36. daddr_t cleanfl; /* Volume clean flag */
  37. time_t timestamp; /* Timestamp */
  38. daddr_t x[124]; /* Reserved */
  39. };
  40. #define CLEANFL ((daddr_t)0x76543210) /* Volume clean magic number */
  41. #endif /* _rhSYS_FS_DNIX_DISKPAR */