Rename

- apply_segment_header_device
- apply_metablock_device
- etc
Refactor writeboost.h