summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
diff options
context:
space:
mode:
authorRajesh Joseph <rjoseph@redhat.com>2015-09-09 17:46:16 +0530
committerAtin Mukherjee <amukherj@redhat.com>2015-09-22 10:35:51 -0700
commit59557e1c9ca33c997743c0c03cf73c2f470c8bf3 (patch)
tree05ca2d01b95e6c2f721e992c375d9a632480f0ff /xlators/mgmt/glusterd/src/glusterd-brick-ops.c
parent68e8d617eb62a7ec40a1db5f3f60730767a168b6 (diff)
glusterd/utils: glusterd_copy_file does not truncate target file
glusterd_copy_file function copies source file to target. If the target file already exists and is bigger than the source file then it can cause file corruption. Target file should be truncated before copying source content. Signed-off-by: Rajesh Joseph <rjoseph@redhat.com> Change-Id: Ie973f3e9fa06309ded6f69dcde41e1b60b3e028e BUG: 1261482 Reviewed-on: http://review.gluster.org/12141 Reviewed-by: jiffin tony Thottan <jthottan@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-brick-ops.c')
0 files changed, 0 insertions, 0 deletions