def from_lines(cls, lines):
        '''
        Instantiates a VolumeMetadata object from storage read bytes.

        Args:
            lines: list of key=value entries given as bytes read from storage
            metadata section. "EOF" entry terminates parsing.
        '''

        metadata, errors = parse(lines)
        if errors:
            raise exception.InvalidMetadata(
                "lines={} errors={}".format(lines, errors))
        return cls(**metadata)