Home | History | Annotate | Download | only in cgpt

Lines Matching refs:PRIMARY

166     Error("Cannot read primary GPT header\n");
183 Error("Cannot read primary partition entry array\n");
187 Warning("Primary GPT header is invalid\n");
213 Error("Cannot write primary header: %s\n", strerror(errno));
232 Error("Cannot write primary entries: %s\n", strerror(errno));
712 if (secondary == PRIMARY) {
849 * itself so that my_lba in primary and secondary is definitely different.
858 * If any of above field are not matched, overwrite secondary with primary since
859 * we always trust primary.
871 /* Primary entries and secondary entries should be bitwise identical.
873 * overwrites secondary with primary (primary always has higher priority),
882 * the secondary GPT with the primary one as that might wipe the
883 * partition table. Also don't overwrite the primary one with the
915 /* The above five fields are shared between primary and secondary headers.
925 /* This function repairs primary and secondary headers if possible.
930 * we will use the primary header to overwrite secondary header.
931 * If primary is invalid (CRC32 is wrong), then we repair it from secondary.
932 * If secondary is invalid (CRC32 is wrong), then we repair it from primary.