commit | 79715ad989b427a05c94305cfcc907b3a65b4316 | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Fri Oct 02 14:27:53 2015 -0700 |
committer | Alex Deymo <deymo@google.com> | Wed Oct 07 17:32:09 2015 -0700 |
tree | 41a19b414137c7cfa78360431a0c5e4bb2baa855 | |
parent | 16daa08470beb5021b85618f1b3ee214d89e59a1 [diff] |
Implement ZERO and DISCARD operations in update_engine. ZERO and DISCARD operations are implemented using the specific ioctl() that allow SSD to do a faster operation when writing zeros. In case of failure, such as when they are not supported, the operation will fall back to write the zeros directly. Bug: 23180264 Test: Added a unittest. Change-Id: I0f12ab9864620b50250157c1de17b7fc58c7ea1c