'Clones NFS files to a new one named \'name\'.
Clone primitive used to support all NFS snapshot/cloning functions.
:param fs_label:  file system label of the new file
:param src: source file
:param name: target path of the new created file'

def file_clone(self, fs_label, src, name):

    fs_list = self._get_fs_list()
    fs = fs_list.get(fs_label)
    if (not fs):
        LOG.error("Can't    find    file    %(file)s    in    FS    %(label)s", {'file': src, 'label': fs_label})
        msg = (_('FS    label:    %(fs_label)s') % {'fs_label': fs_label})
        raise exception.InvalidParameterValue(err=msg)
    self._run_cmd('console-context', '--evs', fs['evsid'], 'file-clone-create', '-f', fs_label, src, name)
    LOG.debug('file_clone:    fs:%(fs_label)s    %(src)s/src:    ->    %(name)s/dst', {'fs_label': fs_label, 'src': src, 'name': name})
