'Return the local path for the specified volume.'

def local_path(self, volume):

    if (volume.group_id is not None):
        if volume_utils.is_group_a_cg_snapshot_type(volume.group):
            cgname = ('consisgroup-%s' % volume.group_id)
            volume_path = os.path.join(self.configuration.gpfs_mount_point_base, cgname, volume.name)
            return volume_path
    volume_path = os.path.join(self.configuration.gpfs_mount_point_base, volume.name)
    return volume_path
