error.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "stdinc.h"
  2. #include "dat.h"
  3. #include "fns.h"
  4. #include "error.h"
  5. char EBadAddr[] = "illegal block address";
  6. char EBadDir[] = "corrupted directory entry";
  7. char EBadEntry[] = "corrupted file entry";
  8. char EBadLabel[] = "corrupted block label";
  9. char EBadMeta[] = "corrupted meta data";
  10. char EBadMode[] = "illegal mode";
  11. char EBadOffset[] = "illegal offset";
  12. char EBadPath[] = "illegal path element";
  13. char EBadRoot[] = "root of file system is corrupted";
  14. char EBadSuper[] = "corrupted super block";
  15. char EBlockTooBig[] = "block too big";
  16. char ECacheFull[] = "no free blocks in memory cache";
  17. char EConvert[] = "protocol botch";
  18. char EExists[] = "file already exists";
  19. char EFsFill[] = "file system is full";
  20. char EIO[] = "i/o error";
  21. char EInUse[] = "file is in use";
  22. char ELabelMismatch[] = "block label mismatch";
  23. char ENilBlock[] = "illegal block address";
  24. char ENoDir[] = "directory entry is not allocated";
  25. char ENoFile[] = "file does not exist";
  26. char ENotDir[] = "not a directory";
  27. char ENotEmpty[] = "directory not empty";
  28. char ENotFile[] = "not a file";
  29. char EReadOnly[] = "file is read only";
  30. char ERemoved[] = "file has been removed";
  31. char ENotArchived[] = "file is not archived";
  32. char EResize[] = "only support truncation to zero length";
  33. char ERoot[] = "cannot remove root";
  34. char ESnapOld[] = "snapshot has been deleted";
  35. char ESnapRO[] = "snapshot is read only";
  36. char ETooBig[] = "file too big";
  37. char EVentiIO[] = "venti i/o error";