home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man8 / clri.8 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.3 KB  |  54 lines

  1. .th CLRI VIII 10/31/73
  2. .sh NAME
  3. clri \*- clear i-node
  4. .sh SYNOPSIS
  5. .bd clri
  6. i-number [ filesystem ]
  7. .sh DESCRIPTION
  8. .it Clri
  9. writes zeros on the 32 bytes occupied by the i-node
  10. numbered
  11. .it i-number.
  12. If the
  13. .it "file system"
  14. argument is given, the i-node resides on
  15. the given device, otherwise on a
  16. default file system.
  17. The file system argument
  18. must be a special file
  19. name referring to a device
  20. containing a file system.
  21. After
  22. .it clri,
  23. any blocks
  24. in the affected file
  25. will show up as ``missing'' in an
  26. .it icheck
  27. of
  28. of the file system.
  29. .s3
  30. Read and write permission is required on the specified
  31. file system device.
  32. The i-node becomes allocatable.
  33. .s3
  34. The primary purpose of this routine
  35. is to remove a file which
  36. for some reason appears in no
  37. directory.
  38. If it is used to zap an i-node
  39. which does appear in a directory, care should be taken to track down
  40. the entry and remove it.
  41. Otherwise, when the i-node is reallocated to some new file,
  42. the old entry will still point to that file.
  43. At that point removing the old entry will destroy the new file.
  44. The new entry will again point to an unallocated i-node,
  45. so the whole cycle is likely to be repeated again and again.
  46. .sh BUGS
  47. Whatever the default file system is,
  48. it is likely to be wrong.
  49. Specify the file system explicitly.
  50. .s3
  51. If the file is open,
  52. .it clri
  53. is likely to be ineffective.
  54.