'Create new volume from other\'s snapshot on appliance.
:param volume: reference of volume to be created
:param snapshot: reference of source snapshot'

def create_volume_from_snapshot(self, volume, snapshot):

    self.nms.zvol.clone(('%s@%s' % (self._get_zvol_name(snapshot['volume_name']), snapshot['name'])), self._get_zvol_name(volume['name']))
    if (('size' in volume) and (volume['size'] > snapshot['volume_size'])):
        self.extend_volume(volume, volume['size'])
