summaryrefslogtreecommitdiff
path: root/usr.bin/nl/nl.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2022-05-08 18:01:24 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2022-05-08 18:01:24 +0000
commit16d0658f8bb78e22246af0bd30f83d6f7981734f (patch)
tree49f1a9671661027b5c5193c600f0b37884017bd1 /usr.bin/nl/nl.c
parent5caad49bb892f7c03b4c51b1f00e950cec05fa4d (diff)
Rename gt_protected field of struct gpt_type to gt_attr and
#define GTATTR_PROTECT and GTATTR_PROTECT_EFISYS as bits in it. Use GTATTR_PROTECT to replace the magic value of '1' indicating the partition is protected. Use GTATTR_PROTECT_EFISYS to replace hack of checking for "APFS" string in the names of partitions that want the EFI System (a.k.a. 0xEF) partition to be preserved. More flexible and easier to extend protections to new partition types or add new attributes to partition types. No intentional functional change.
Diffstat (limited to 'usr.bin/nl/nl.c')
0 files changed, 0 insertions, 0 deletions