error.c 1.8 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. char EBadAddr[] = "illegal block address";
  14. char EBadDir[] = "corrupted directory entry";
  15. char EBadEntry[] = "corrupted file entry";
  16. char EBadLabel[] = "corrupted block label";
  17. char EBadMeta[] = "corrupted meta data";
  18. char EBadMode[] = "illegal mode";
  19. char EBadOffset[] = "illegal offset";
  20. char EBadPath[] = "illegal path element";
  21. char EBadRoot[] = "root of file system is corrupted";
  22. char EBadSuper[] = "corrupted super block";
  23. char EBlockTooBig[] = "block too big";
  24. char ECacheFull[] = "no free blocks in memory cache";
  25. char EConvert[] = "protocol botch";
  26. char EExists[] = "file already exists";
  27. char EFsFill[] = "file system is full";
  28. char EIO[] = "i/o error";
  29. char EInUse[] = "file is in use";
  30. char ELabelMismatch[] = "block label mismatch";
  31. char ENilBlock[] = "illegal block address";
  32. char ENoDir[] = "directory entry is not allocated";
  33. char ENoFile[] = "file does not exist";
  34. char ENotDir[] = "not a directory";
  35. char ENotEmpty[] = "directory not empty";
  36. char ENotFile[] = "not a file";
  37. char EReadOnly[] = "file is read only";
  38. char ERemoved[] = "file has been removed";
  39. char ENotArchived[] = "file is not archived";
  40. char EResize[] = "only support truncation to zero length";
  41. char ERoot[] = "cannot remove root";
  42. char ESnapOld[] = "snapshot has been deleted";
  43. char ESnapRO[] = "snapshot is read only";
  44. char ETooBig[] = "file too big";
  45. char EVentiIO[] = "venti i/o error";