data.c 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. #include "all.h"
  2. char *errstr9p[MAXERR] =
  3. {
  4. [Ebadspc] "attach -- bad specifier",
  5. [Efid] "unknown fid",
  6. [Echar] "bad character in directory name",
  7. [Eopen] "read/write -- on non open fid",
  8. [Ecount] "read/write -- count too big",
  9. [Ealloc] "phase error -- directory entry not allocated",
  10. [Eqid] "phase error -- qid does not match",
  11. [Eaccess] "access permission denied",
  12. [Eentry] "directory entry not found",
  13. [Emode] "open/create -- unknown mode",
  14. [Edir1] "walk -- in a non-directory",
  15. [Edir2] "create -- in a non-directory",
  16. [Ephase] "phase error -- cannot happen",
  17. [Eexist] "create/wstat -- file exists",
  18. [Edot] "create/wstat -- . and .. illegal names",
  19. [Eempty] "remove -- directory not empty",
  20. [Ebadu] "attach -- unknown user or failed authentication",
  21. [Enoattach] "attach -- system maintenance",
  22. [Ewstatb] "wstat -- unknown bits in qid.type/mode",
  23. [Ewstatd] "wstat -- attempt to change directory",
  24. [Ewstatg] "wstat -- not in group",
  25. [Ewstatl] "wstat -- attempt to make length negative",
  26. [Ewstatm] "wstat -- attempt to change muid",
  27. [Ewstato] "wstat -- not owner or group leader",
  28. [Ewstatp] "wstat -- attempt to change qid.path",
  29. [Ewstatq] "wstat -- qid.type/dir.mode mismatch",
  30. [Ewstatu] "wstat -- not owner",
  31. [Ewstatv] "wstat -- attempt to change qid.vers",
  32. [Ename] "create/wstat -- bad character in file name",
  33. [Ewalk] "walk -- too many (system wide)",
  34. [Eronly] "file system read only",
  35. [Efull] "file system full",
  36. [Eoffset] "read/write -- offset negative",
  37. [Elocked] "open/create -- file is locked",
  38. [Ebroken] "read/write -- lock is broken",
  39. [Eauth] "attach -- authentication failed",
  40. [Eauth2] "read/write -- authentication unimplemented",
  41. [Etoolong] "name too long",
  42. [Efidinuse] "fid in use",
  43. [Econvert] "protocol botch",
  44. [Eversion] "version conversion",
  45. [Eauthnone] "auth -- user 'none' requires no authentication",
  46. [Eauthdisabled] "auth -- authentication disabled", /* development */
  47. [Eauthfile] "auth -- out of auth files",
  48. [Eedge] "at the bleeding edge", /* development */
  49. };
  50. char* wormscode[0x80] =
  51. {
  52. [0x00] "no sense",
  53. [0x01] "invalid command",
  54. [0x02] "recovered error",
  55. [0x03] "illegal request",
  56. [0x06] "unit attention",
  57. [0x07] "parity error",
  58. [0x08] "message reject error",
  59. [0x0a] "copy aborted",
  60. [0x0b] "initiator detected error",
  61. [0x0c] "select re-select failed",
  62. [0x0e] "miscompare",
  63. [0x10] "ecc trouble occurred",
  64. [0x11] "time out error",
  65. [0x12] "controller error",
  66. [0x13] "sony i/f II hardware/firmware error",
  67. [0x14] "scsi hardware/firmware error",
  68. [0x15] "rom version unmatched error",
  69. [0x16] "logical block address out of range",
  70. [0x20] "command not terminated",
  71. [0x21] "drive interface parity error",
  72. [0x22] "loading trouble",
  73. [0x23] "focus trouble",
  74. [0x24] "tracking trouble",
  75. [0x25] "spindle trouble",
  76. [0x26] "slide trouble",
  77. [0x27] "skew trouble",
  78. [0x28] "head lead out",
  79. [0x29] "write modulation trouble",
  80. [0x2a] "under laser power",
  81. [0x2b] "over laser power",
  82. [0x2f] "drive error",
  83. [0x30] "drive power off",
  84. [0x31] "no disk in drive",
  85. [0x32] "drive not ready",
  86. [0x38] "disk already exists in drive",
  87. [0x39] "no disk in shelf",
  88. [0x3a] "disk already exists in shelf",
  89. [0x40] "write warning",
  90. [0x41] "write error",
  91. [0x42] "disk error",
  92. [0x43] "cannot read disk ID",
  93. [0x44] "write protect error 1",
  94. [0x45] "write protect error 2",
  95. [0x46] "disk warning",
  96. [0x47] "alternation trouble",
  97. [0x50] "specified address not found",
  98. [0x51] "address block not found",
  99. [0x52] "all address could not be read",
  100. [0x53] "data could not be read",
  101. [0x54] "uncorrectable read error",
  102. [0x55] "tracking error",
  103. [0x56] "write servo error",
  104. [0x57] "write monitor error",
  105. [0x58] "write verify error",
  106. [0x60] "no data in specified address",
  107. [0x61] "blank check failed",
  108. [0x62] "controller diagnostics failed",
  109. [0x63] "drive diagnostice failed",
  110. [0x64] "diagnostice aborted",
  111. [0x67] "juke diagnostice failed",
  112. [0x68] "z-axis servo failed",
  113. [0x69] "roter servo error",
  114. [0x6a] "hook servo error",
  115. [0x6b] "I/O self error",
  116. [0x6c] "drive 0 error",
  117. [0x6d] "drive 1 error",
  118. [0x6e] "shelf error",
  119. [0x6f] "carrier error",
  120. [0x70] "rob made me do it",
  121. [0x71] "out of range",
  122. };
  123. char* tagnames[] =
  124. {
  125. [Tbuck] "Tbuck",
  126. [Tdir] "Tdir",
  127. [Tfile] "Tfile",
  128. [Tfree] "Tfree",
  129. [Tind1] "Tind1",
  130. [Tind2] "Tind2",
  131. #ifndef COMPAT32
  132. [Tind3] "Tind3",
  133. [Tind4] "Tind4",
  134. /* add more Tind tags here ... */
  135. #endif
  136. [Tnone] "Tnone",
  137. [Tsuper] "Tsuper",
  138. [Tvirgo] "Tvirgo",
  139. [Tcache] "Tcache",
  140. };