OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 <string.h> | 7 #include <string.h> |
8 #include "cgptlib_internal.h" | 8 #include "cgptlib_internal.h" |
9 #include "crc32.h" | 9 #include "crc32.h" |
10 #include "gpt.h" | 10 #include "gpt.h" |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 RepairEntries(gpt, MASK_PRIMARY); | 761 RepairEntries(gpt, MASK_PRIMARY); |
762 /* Actually two entries are dirty now. | 762 /* Actually two entries are dirty now. |
763 * Also two headers are dirty because entries_crc32 has been updated. */ | 763 * Also two headers are dirty because entries_crc32 has been updated. */ |
764 gpt->modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 | | 764 gpt->modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 | |
765 GPT_MODIFIED_HEADER2 | GPT_MODIFIED_ENTRIES2); | 765 GPT_MODIFIED_HEADER2 | GPT_MODIFIED_ENTRIES2); |
766 UpdateCrc(gpt); | 766 UpdateCrc(gpt); |
767 } | 767 } |
768 | 768 |
769 return GPT_SUCCESS; | 769 return GPT_SUCCESS; |
770 } | 770 } |
OLD | NEW |