I'm playing theese days with fdisk and disklabel on a vnode image as practice pourpose to face the real situation when needed. I have a concept that isn't really clear to me even after reading disklabel(8), fdisk(8) and faq.
When starting with a zeroed image (or device) and doing initial 'fdisk -e vnd0', I have noticed that changes on the offsets and sizes of partitions needs to be saved (first write and later quit) to save the MBR but after quiting fdisk and launching disklabel, it have no idea (disklabel program) about the OpenBSD starting and ending blocks to use (even launched with 'disklabel -dE vnd0') then I go back to 'fdisk -e vnd0' and do "update" command (cause I want to preserve my partitions and sizes, not reinit it), again write and quit and then disklabel recognizes it's limitations, bounds, etc. The question is: What's the mainly difference between 'update' and 'write' on fdisk program? -Thanks for reading -Jesus