On Sat, Aug 7, 2010 at 1:29 AM, Sergey Poznyakoff <[email protected]> wrote: > Not quite so. The end of archive is marked by two zero blocks > (not being part of any archive member of course). When tar > sees this marker it exits without attempting to read any further. > This behavior may be disabled by using the -i (--ignore-zeros) > command line option.
Thanks - somehow I missed that option (probably by searching for "zeroes" -- it was late..) >> (tar -cf - ChangeLog; cat /dev/zero) | tar -tf - >> ChangeLog >> (this hangs forever here, and truss or strace shows tar reading a lot >> of 0's without any _exit(0) action..) > > Looks like you run an older version of tar. This was the default > behavior before version 1.21. It's 1.23, but it's probably patched. Anyway, I will add the --ignore-zeros option to Amanda. Thanks for setting me straight! Dustin -- Open Source Storage Engineer http://www.zmanda.com
