| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Update file format: A delta update file contains all the deltas needed | 5 // Update file format: A delta update file contains all the deltas needed |
| 6 // to update a system from one specific version to another specific | 6 // to update a system from one specific version to another specific |
| 7 // version. The update format is represented by this struct pseudocode: | 7 // version. The update format is represented by this struct pseudocode: |
| 8 // struct delta_update_file { | 8 // struct delta_update_file { |
| 9 // char magic[4] = "CrAU"; | 9 // char magic[4] = "CrAU"; |
| 10 // uint32 file_format_version = 1; | 10 // uint32 file_format_version = 1; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // of bytes to read from the blocks we pass it. | 83 // of bytes to read from the blocks we pass it. |
| 84 optional uint64 src_length = 5; | 84 optional uint64 src_length = 5; |
| 85 | 85 |
| 86 repeated Extent dst_extents = 6; | 86 repeated Extent dst_extents = 6; |
| 87 // byte length of dst, not necessarily block aligned. It's only used for | 87 // byte length of dst, not necessarily block aligned. It's only used for |
| 88 // BSDIFF, because we need to fill in the rest of the last block | 88 // BSDIFF, because we need to fill in the rest of the last block |
| 89 // that bsdiff writes with '\0' bytes. | 89 // that bsdiff writes with '\0' bytes. |
| 90 optional uint64 dst_length = 7; | 90 optional uint64 dst_length = 7; |
| 91 } | 91 } |
| 92 repeated InstallOperation install_operations = 1; | 92 repeated InstallOperation install_operations = 1; |
| 93 // The checksums of the install device before and after the install process. | 93 repeated InstallOperation kernel_install_operations = 2; |
| 94 optional string src_checksum = 2; | |
| 95 optional string dst_checksum = 3; | |
| 96 | 94 |
| 97 // (At time of writing) usually 4096 | 95 // (At time of writing) usually 4096 |
| 98 optional uint32 block_size = 5 [default = 4096]; | 96 optional uint32 block_size = 3 [default = 4096]; |
| 99 } | 97 } |
| OLD | NEW |