home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0044 < prev    next >
Encoding:
Text File  |  1981-12-02  |  740 b   |  17 lines

  1. Autzoo.1178
  2. net.v7bugs
  3. utzoo!henry
  4. Wed Dec  2 22:14:57 1981
  5. du vs big dirs
  6. Du(1), as distributed, fails on large directories ( >= 32KB ).  Such
  7. directories are unlikely (and unwieldy) but not impossible, particularly
  8. if you have a mail/news system that creates lots of little files in the
  9. same place.  The fix is to declare du.c/descend()'s variables "dirsize" and
  10. "offset" to be long instead of int.
  11.  
  12. Also, du has an inherent problem:  it has no way to tell whether a file
  13. has "holes" in it, i.e. whether all the bytes indicated by st_size really
  14. are allocated.  This can result in overreporting of disk consumption,
  15. although this is not a major problem since holes in files are uncommon.
  16. Just as well:  there is no easy fix for this one.
  17.