Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: src/platform/vboot_reference/cgptlib/cgptlib.c

Issue 2082007: rename cgpt files with cgptlib prefix (to avoid conflicts to cgpt utility) (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "cgpt.h" 6 #include "cgptlib.h"
7 #include <string.h> 7 #include <string.h>
8 #include "cgpt_internal.h" 8 #include "cgptlib_internal.h"
9 #include "crc32.h" 9 #include "crc32.h"
10 #include "gpt.h" 10 #include "gpt.h"
11 #include "quick_sort.h" 11 #include "quick_sort.h"
12 #include "utility.h" 12 #include "utility.h"
13 13
14 /* Macro to invalidate a GPT header/entries */ 14 /* Macro to invalidate a GPT header/entries */
15 #define INVALIDATE_HEADER(valid_headers, index) \ 15 #define INVALIDATE_HEADER(valid_headers, index) \
16 do { \ 16 do { \
17 valid_headers &= ~(1<<index); \ 17 valid_headers &= ~(1<<index); \
18 } while (0) 18 } while (0)
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 RepairEntries(gpt, MASK_PRIMARY); 737 RepairEntries(gpt, MASK_PRIMARY);
738 /* Actually two entries are dirty now. 738 /* Actually two entries are dirty now.
739 * Also two headers are dirty because entries_crc32 has been updated. */ 739 * Also two headers are dirty because entries_crc32 has been updated. */
740 gpt->modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 | 740 gpt->modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 |
741 GPT_MODIFIED_HEADER2 | GPT_MODIFIED_ENTRIES2); 741 GPT_MODIFIED_HEADER2 | GPT_MODIFIED_ENTRIES2);
742 UpdateCrc(gpt); 742 UpdateCrc(gpt);
743 } 743 }
744 744
745 return GPT_SUCCESS; 745 return GPT_SUCCESS;
746 } 746 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698