'Ensure snapshot support is enabled in config.'

def _check_snapshot_support(self, setup_checking=False):

    if ((not self.configuration.nfs_snapshot_support) and (not setup_checking)):
        msg = _('NFS    driver    snapshot    support    is    disabled    in    cinder.conf.')
        raise exception.VolumeDriverException(message=msg)
    if ((self.configuration.nas_secure_file_operations == 'true') and self.configuration.nfs_snapshot_support):
        msg = _("Snapshots    are    not    supported    with    nas_secure_file_operations    enabled    ('true'    or    'auto').    Please    set    it    to    'false'    if    you    intend    to        have    it    enabled.")
        LOG.error(msg)
        raise exception.VolumeDriverException(message=msg)
