On 1/9/09 4:53 PM, Patrick Spinler wrote:
...
At this point I'd suggest reporting a bug through the distributions,
probably all three of Novell (via OpenSUSE), Redhat (via Fedora) and
Debian. Create a bug entry in each distro's bug track. If you provide
a reproducible problem report, and especially a code patch that fixes
it, it should be easy to get the fix in.
Looks like this needs to be changed, in logrotate.c 3.7.4:
413 while ((cnt = read(fdcurr, buf, sizeof(buf))) > 0) {
414 if (write(fdsave, buf, cnt) != cnt) {
415 message(MESS_ERROR, "error writing to %s: %s\n",
416 saveLog, strerror(errno));
417 close(fdcurr);
418 close(fdsave);
419 return 1;
420 }
However, I'm clueless -- in general, but specifically about how to
convert this into the equivalent of "cp --sparse=auto", as John
Summerfield pointed out. Short of making a system (3) call (probably not
portable) to invoke cp. Or ripping cp's "crude heuristic" out and
putting it here.
I recently read an article somewhere about seek_hole and seek_data, from
ZFS, being implemented soon in Linux, and/or an alternative someone
submitted, but can't find it now :-(
- Larry
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390