summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_ioctl.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2006-11-19 20:17:12 +0000
committerkrw <krw@openbsd.org>2006-11-19 20:17:12 +0000
commit2e01c514dd46739e1ff48ab524a55dd1bc630355 (patch)
tree40f799d5409ffb9abc4a3535fc99ec9818a09f81 /sys/net/pf_ioctl.c
parentsome additional registers for the Artisea chipset operating in DPA mode. (diff)
downloadwireguard-openbsd-2e01c514dd46739e1ff48ab524a55dd1bc630355.tar.xz
wireguard-openbsd-2e01c514dd46739e1ff48ab524a55dd1bc630355.zip
Try DIOCGPDINFO before DIOCGDINFO when trying to determine the 'label'
geometry for a unit. DIOCGPDINFO avoids using the on-disk label or the cached copy of it and returns a 'spoofed' label that retains the geometry info placed in the label by the driver. Unfortunately DIOCGPDINFO is not universally implemented, though sd and wd do. This is what disklabel(8) does when it wants geometry so this makes fdisk a bit more consistant with disklabel. This fixes 'fdisk -i' and 'reinit' when trying to install from a miniroot on, e.g., landisk. i.e. no need to zero out the disklabel before doing 'fdisk -i'. 'get it in snaps' deraadt@
Diffstat (limited to 'sys/net/pf_ioctl.c')
0 files changed, 0 insertions, 0 deletions