'Return the GPFS fileset for specified path.'

def _get_fileset_from_path(self, path):

    fs_regex = re.compile('.*fileset.name:\\s+(?P<fileset>\\w+)', re.S)
    try:
        (out, err) = self.gpfs_execute((self.GPFS_PATH + 'mmlsattr'), '-L', path)
    except processutils.ProcessExecutionError as exc:
        LOG.error('Failed    to    issue    mmlsattr    command    on    path    %(path)s,    error:    %(error)s', {'path': path, 'error': exc.stderr})
        raise exception.VolumeBackendAPIException(data=exc.stderr)
    try:
        fileset = fs_regex.match(out).group('fileset')
        return fileset
    except AttributeError as exc:
        msg = (_('Failed    to    find    fileset    for    path    %(path)s,    command    output:    %(cmdout)s.') % {'path': path, 'cmdout': out})
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
