diff options
| author | Avra Sengupta <asengupt@redhat.com> | 2015-07-05 12:57:39 +0530 |
|---|---|---|
| committer | Rajesh Joseph <rjoseph@redhat.com> | 2015-07-08 02:39:31 -0700 |
| commit | a2e041458cbdf7b758e1af5d1e0c897f34bbc7c0 (patch) | |
| tree | bdebad36a306f614366d209c858d8409371a8ea5 /libglusterfs | |
| parent | 3f9dae11173475d759adb16dd64bea9cef0bf1c4 (diff) | |
snapshot/scheduler: Use /var/run/gluster/shared_storage/snaps/tmp_file for writing data into tmp file and then making an atomic rename to the required filename
The reason for using this location is that it adheres to
the selinux policies.
Also moving the update of the current_scheduler file,
under the lock so as to avoid multiple writes
Change-Id: I61e62b5daf6f1bce2319f64f7b1dfb8b93726077
BUG: 1239270
Signed-off-by: Avra Sengupta <asengupt@redhat.com>
Reviewed-on: http://review.gluster.org/11536
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'libglusterfs')
0 files changed, 0 insertions, 0 deletions
