def _format_index(self, volume_system, idx):
        """Returns a formatted index given the disk index idx."""

        if volume_system.parent.index is not None:
            return '{0}.{1}'.format(volume_system.parent.index, idx)
        else:
            return str(idx)
Returns a formatted index given the disk index idx.