PRT_prt_to_dp() and PRT_parse() to PRT_dp_to_prt().
No functional change.
-/* $OpenBSD: gpt.c,v 1.90 2023/05/10 12:59:47 krw Exp $ */
+/* $OpenBSD: gpt.c,v 1.91 2023/05/17 12:59:37 krw Exp $ */
/*
* Copyright (c) 2015 Markus Muller <mmu@grummel.net>
* Copyright (c) 2015 Kenneth R Westerback <krw@openbsd.org>
for (i = 0; i < nitems(dp); i++) {
memset(&dos_partition, 0, sizeof(dos_partition));
if (i < nitems(mbr->mbr_prt))
- PRT_make(&mbr->mbr_prt[i], mbr->mbr_lba_self,
+ PRT_prt_to_dp(&mbr->mbr_prt[i], mbr->mbr_lba_self,
mbr->mbr_lba_firstembr, &dos_partition);
memcpy(&dp[i], &dos_partition, sizeof(dp[i]));
}
-/* $OpenBSD: mbr.c,v 1.123 2023/03/06 13:24:40 krw Exp $ */
+/* $OpenBSD: mbr.c,v 1.124 2023/05/17 12:59:37 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
bootprt = disk.dk_bootprt;
} else {
memcpy(&dp, &default_dmbr.dmbr_parts[0], sizeof(dp));
- PRT_parse(&dp, 0, 0, &bootprt);
+ PRT_dp_to_prt(&dp, 0, 0, &bootprt);
}
if (bootprt.prt_ns > 0) {
for (i = 0; i < nitems(mbr->mbr_prt); i++) {
memset(&mbr->mbr_prt[i], 0, sizeof(mbr->mbr_prt[i]));
if (i < nitems(dmbr->dmbr_parts))
- PRT_parse(&dos_parts[i], lba_self, lba_firstembr,
+ PRT_dp_to_prt(&dos_parts[i], lba_self, lba_firstembr,
&mbr->mbr_prt[i]);
}
}
for (i = 0; i < nitems(dos_mbr->dmbr_parts); i++) {
memset(&dos_partition, 0, sizeof(dos_partition));
if (i < nitems(mbr->mbr_prt)) {
- PRT_make(&mbr->mbr_prt[i], mbr->mbr_lba_self,
+ PRT_prt_to_dp(&mbr->mbr_prt[i], mbr->mbr_lba_self,
mbr->mbr_lba_firstembr, &dos_partition);
}
memcpy(&dos_mbr->dmbr_parts[i], &dos_partition,
-/* $OpenBSD: part.c,v 1.161 2023/05/10 13:45:49 krw Exp $ */
+/* $OpenBSD: part.c,v 1.162 2023/05/17 12:59:37 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
}
void
-PRT_parse(const struct dos_partition *dp, const uint64_t lba_self,
+PRT_dp_to_prt(const struct dos_partition *dp, const uint64_t lba_self,
const uint64_t lba_firstembr, struct prt *prt)
{
off_t off;
}
void
-PRT_make(const struct prt *prt, const uint64_t lba_self,
+PRT_prt_to_dp(const struct prt *prt, const uint64_t lba_self,
const uint64_t lba_firstembr, struct dos_partition *dp)
{
struct chs start, end;
-/* $OpenBSD: part.h,v 1.45 2023/04/09 17:19:59 krw Exp $ */
+/* $OpenBSD: part.h,v 1.46 2023/05/17 12:59:37 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
void PRT_print_mbrmenu(char *, size_t);
void PRT_print_gptmenu(char *, size_t);
-void PRT_parse(const struct dos_partition *, const uint64_t,
+void PRT_dp_to_prt(const struct dos_partition *, const uint64_t,
const uint64_t, struct prt *);
-void PRT_make(const struct prt *,const uint64_t, const uint64_t,
+void PRT_prt_to_dp(const struct prt *,const uint64_t, const uint64_t,
struct dos_partition *);
void PRT_print_part(const int, const struct prt *, const char *);
void PRT_print_parthdr(void);