Skip to main content

Module volume

Module volume 

Source
Expand description

Volume label ⇄ 16-byte field — the one implementation of the contract’s “UTF-8 drive label, zero-padded, not a GUID” rule (used by FmfEvent, FmfVolumeStatus and the pipe event body).

Functions§

decode_label
Reads up to the first NUL; non-UTF-8 content decodes as “” (defensive — well-formed peers never produce it).
encode_label
Zero-padded UTF-8, capped at 15 bytes (the last byte stays NUL so the C side can treat the field as NUL-terminated).