'Creates a GPFS snapshot.'

def create_snapshot(self, snapshot):

    snapshot_path = self._get_snapshot_path(snapshot)
    volume_path = os.path.join(os.path.dirname(snapshot_path), snapshot.volume.name)
    self._create_gpfs_snap(src=volume_path, dest=snapshot_path)
    self._set_rw_permission(snapshot_path, modebits='640')
    self._gpfs_redirect(volume_path)
