Andreas Dilger <adil...@dilger.ca> wrote: > I think in addition to fixing btrfs (because it needs to work with existing > tar/rsync/etc. tools) it makes sense to *also* fix the heuristics of tar > to handle this situation more robustly. One option is if st_blocks == 0 then > tar should also check if st_mtime is less than 60s in the past, and if yes > then it should call fsync() on the file to flush any unwritten data to disk, > or assume the file is not sparse and read the whole file, so that it doesn't > incorrectly assume that the file is sparse and skip archiving the file data.
A broken filesystem is a broken filesystem. If you try to change gtar to work around a specific problem, it may fail in other situations. Jörg -- EMail:jo...@schily.net (home) Jörg Schilling D-13353 Berlin joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/'