OSDN Git Service

Fix handling of directory entries
authorChristopher Tate <ctate@google.com>
Thu, 9 Jun 2011 03:09:31 +0000 (20:09 -0700)
committerChristopher Tate <ctate@google.com>
Thu, 9 Jun 2011 03:11:49 +0000 (20:11 -0700)
commit61334a3f831ecd5ad7b91a2b81532f5caffb1307
tree3cc224ea0317387c64e5dc6e835ad889ac36f793
parent5f3274036c5d8cf879eacfac323f9622d15d343f
Fix handling of directory entries

Don't emit tar blocks for directories with an invalid nonzero size.  Also, if
such an entry is encountered during restore, don't actually attempt to treat
it as valid and thus skip over the next actual tar entry.

This patch also adds tracking of the data actually consumed during restore,
and reports a total at the end of stream.

Change-Id: I625173f76df3c007e899209101ff2b587841f184
libs/utils/BackupHelpers.cpp