home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6882 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  2.0 KB

  1. Path: sparky!uunet!olivea!decwrl!concert!borg!cs.unc.edu!faith
  2. From: faith@cs.unc.edu (Rik Faith)
  3. Newsgroups: comp.os.linux
  4. Subject: FOLLOWUP: fileutl-3.3B* and find-3.7B*: possible problems
  5. Message-ID: <14203@borg.cs.unc.edu>
  6. Date: 28 Jul 92 17:39:58 GMT
  7. References: <14190@borg.cs.unc.edu>
  8. Sender: news@cs.unc.edu
  9. Lines: 33
  10.  
  11.  
  12. This note explains the problems that I was having with fu-3.3's cp, what
  13. caused these problems, and why cp is really *SAFE*!
  14.  
  15. The only documented problem with fu-3.3's cp involves cp'ing a kernal image
  16. for booting with shoelace (i.e., cp Image /vmunix).  The cp in 3.3, since I
  17. compiled it with a kernel that has st_blocks working correctly (i.e., 0.96c
  18. pl2) is now able to detect when a file has "holes" in it.  It will then try
  19. to copy the "holes."  It does this during the copy by looking for a block of
  20. zeros, and when finding such a block, using an lseek() to move past the block
  21. [*instead* of a write()].  [This is information is from an examination of the
  22. GNU source.]  The filesystem is apparently smart enough to *not* allocate a
  23. block for these zero's, thereby storing the file more efficiently.
  24.  
  25. However, shoelace *CANNOT* correctly read a file that contains "holes."
  26.  
  27. So, I had two *IDENTICAL* kernel images, one created with a new cp and one
  28. created with an old cp.  They were identical in terms of size, sum, and diff.
  29. One would boot and the other would not.  This seemed very weird, and since
  30. a new utility that I has posted was involved, I decided to err on the side
  31. of caution and post a retraction message (especially since I had made some
  32. optimizations in the compilation of the posted binaries). It now seems that
  33. this was not necessary, and that the files that I posted are *SAFE*.
  34.  
  35. Sorry for the confusion.
  36.  
  37. When 2.2.2d gets released, I'll be posting new compilations.  In the mean
  38. time, the old (and new) versions are available from
  39. ftp.cs.unc.edu:/pub/faith/uploads.  I won't bother putting these on tsx-11
  40. or on banjo again unless there is some demand.
  41.  
  42. -- 
  43. Rik Faith: faith@cs.unc.edu
  44.