commit | 7e0689862ab045327374985711f8d43cffdee271 | [log] [tgz] |
---|---|---|
author | Ruben Ayrapetyan <ruben.ayrapetyan@arm.com> | Wed Dec 20 18:53:39 2023 +0000 |
committer | Steven Moreland <smoreland@google.com> | Wed Jan 03 18:58:36 2024 +0000 |
tree | 195a66faa82cce6a72c96270e2a813f5c208af5c | |
parent | 722f631379eb12438a630fe8960923fc91d86c5e [diff] |
Preserve file sparsity in FdFile::Copy Use lseek SEEK_DATA / SEEK_HOLE in FdFile::Copy to avoid writing empty blocks. This helps to save disk space on file systems that support sparse files. Test: art/tools/run-gtests.sh Change-Id: Idb9202f4b9473c79225a9301bebd495c80bd6558