error.c 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. #include "stdinc.h"
  10. #include "dat.h"
  11. #include "fns.h"
  12. #include "error.h"
  13. int8_t EBadAddr[] = "illegal block address";
  14. int8_t EBadDir[] = "corrupted directory entry";
  15. int8_t EBadEntry[] = "corrupted file entry";
  16. int8_t EBadLabel[] = "corrupted block label";
  17. int8_t EBadMeta[] = "corrupted meta data";
  18. int8_t EBadMode[] = "illegal mode";
  19. int8_t EBadOffset[] = "illegal offset";
  20. int8_t EBadPath[] = "illegal path element";
  21. int8_t EBadRoot[] = "root of file system is corrupted";
  22. int8_t EBadSuper[] = "corrupted super block";
  23. int8_t EBlockTooBig[] = "block too big";
  24. int8_t ECacheFull[] = "no free blocks in memory cache";
  25. int8_t EConvert[] = "protocol botch";
  26. int8_t EExists[] = "file already exists";
  27. int8_t EFsFill[] = "file system is full";
  28. int8_t EIO[] = "i/o error";
  29. int8_t EInUse[] = "file is in use";
  30. int8_t ELabelMismatch[] = "block label mismatch";
  31. int8_t ENilBlock[] = "illegal block address";
  32. int8_t ENoDir[] = "directory entry is not allocated";
  33. int8_t ENoFile[] = "file does not exist";
  34. int8_t ENotDir[] = "not a directory";
  35. int8_t ENotEmpty[] = "directory not empty";
  36. int8_t ENotFile[] = "not a file";
  37. int8_t EReadOnly[] = "file is read only";
  38. int8_t ERemoved[] = "file has been removed";
  39. int8_t ENotArchived[] = "file is not archived";
  40. int8_t EResize[] = "only support truncation to zero length";
  41. int8_t ERoot[] = "cannot remove root";
  42. int8_t ESnapOld[] = "snapshot has been deleted";
  43. int8_t ESnapRO[] = "snapshot is read only";
  44. int8_t ETooBig[] = "file too big";
  45. int8_t EVentiIO[] = "venti i/o error";