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