'Check if a volume copy is in progress for the named volume.'

def volume_copy_in_progress(self, src_name):

    tree = self._request('/show/volume-copies')
    q = ("OBJECT[PROPERTY[@name='source-volume']/text()='%s']" % src_name)
    joblist = tree.xpath(q)
    if (len(joblist) == 0):
        return False
    LOG.debug('Volume    copy    of    volume:    %(src_name)s    is    %(pc)s    percent    completed.', {'src_name': src_name, 'pc': joblist[0].findtext("PROPERTY[@name='progress']")})
    return True
