| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010-2011 The Chromium OS 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 | 5 |
| 6 #include "cgptlib.h" | 6 #include "cgptlib.h" |
| 7 #include "cgptlib_internal.h" | 7 #include "cgptlib_internal.h" |
| 8 #include "crc32.h" | 8 #include "crc32.h" |
| 9 #include "gpt.h" | 9 #include "gpt.h" |
| 10 #include "utility.h" | 10 #include "utility.h" |
| 11 | 11 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 /* Use the repair function to update the other copy of the GPT. | 150 /* Use the repair function to update the other copy of the GPT. |
| 151 * This is a tad inefficient, but is much faster than the disk I/O | 151 * This is a tad inefficient, but is much faster than the disk I/O |
| 152 * to update the GPT on disk so it doesn't matter. */ | 152 * to update the GPT on disk so it doesn't matter. */ |
| 153 gpt->valid_headers = MASK_PRIMARY; | 153 gpt->valid_headers = MASK_PRIMARY; |
| 154 gpt->valid_entries = MASK_PRIMARY; | 154 gpt->valid_entries = MASK_PRIMARY; |
| 155 GptRepair(gpt); | 155 GptRepair(gpt); |
| 156 | 156 |
| 157 return GPT_SUCCESS; | 157 return GPT_SUCCESS; |
| 158 } | 158 } |
| OLD | NEW |