| 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 //   uint64 file_format_version = 1; | 10 //   uint64 file_format_version = 1; | 
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 113     // that bsdiff writes with '\0' bytes. | 113     // that bsdiff writes with '\0' bytes. | 
| 114     optional uint64 dst_length = 7; | 114     optional uint64 dst_length = 7; | 
| 115   } | 115   } | 
| 116   repeated InstallOperation install_operations = 1; | 116   repeated InstallOperation install_operations = 1; | 
| 117   repeated InstallOperation kernel_install_operations = 2; | 117   repeated InstallOperation kernel_install_operations = 2; | 
| 118 | 118 | 
| 119   // (At time of writing) usually 4096 | 119   // (At time of writing) usually 4096 | 
| 120   optional uint32 block_size = 3 [default = 4096]; | 120   optional uint32 block_size = 3 [default = 4096]; | 
| 121 | 121 | 
| 122   // If signatures are present, the offset into the blobs, generally | 122   // If signatures are present, the offset into the blobs, generally | 
| 123   // tacked onto the end of the file. We use an offset rather than | 123   // tacked onto the end of the file, and the length. We use an offset | 
| 124   // a bool to allow for more flexibility in future file formats. | 124   // rather than a bool to allow for more flexibility in future file formats. | 
| 125   // If this is absent, it means signatures aren't supported in this | 125   // If either is absent, it means signatures aren't supported in this | 
| 126   // file. | 126   // file. | 
| 127   optional uint64 signatures_offset = 4; | 127   optional uint64 signatures_offset = 4; | 
|  | 128   optional uint64 signatures_size = 5; | 
| 128 } | 129 } | 
| OLD | NEW | 
|---|