]> git.sur5r.net Git - bacula/bacula/commit
Re-implemented the block-preserving encryption restore. In the process, fixed all...
authorLandon Fuller <landonf@opendarwin.org>
Mon, 4 Dec 2006 04:14:34 +0000 (04:14 +0000)
committerLandon Fuller <landonf@opendarwin.org>
Mon, 4 Dec 2006 04:14:34 +0000 (04:14 +0000)
commite008defbd44c2197c3e56e2f509ff1a43bb05f8a
tree90c99efcd6c16dc074a952aa3534decef3b3b1cd
parent9e7601855c8622a2b5ee9712f9efdd63d6946a22
Re-implemented the block-preserving encryption restore. In the process, fixed all known bugs in handling non-sparse file restoration. Changes include:
   - Removed the "chunk_size" implementation
   - Renamed crypto_count to crypto_buf_len, and crypto_size to crypto_packet_len.
   - Removed unnecessary looping in extract_data()
   - Broke out sparse block handling into its own function
   - Laid some groundwork for adding sparse + encryption support

Testing:
   - Encryption regression tests now pass.
   - Tested sparse file handling changes without encryption enabled.

Known encryption-related bugs remaining:
   - Restoring resource forks is broken; need to set up a seperate decryption context.
   - The latest changes to digest handling with sparse files breaks file signatures.
   - Sparse files are not currently supported when encrypting.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3740 91ce42f0-d328-0410-95d8-f526ca767f89
bacula/src/filed/restore.c
bacula/src/jcr.h