diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2014-09-16 17:11:39 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-09-25 10:34:18 -0700 |
commit | adace43107e3a77dcb3d24c87e7a631c0f099602 (patch) | |
tree | 2d72f6313cbe835a4040a12c377bc94283754ea7 /doc/code | |
parent | 94b0ac65c35d5e167d8e761f198edffe78c7dab2 (diff) |
32 bit fix: use off_t and not size_t for truncate()
Make sure off_t and not size_t is used when holding file offsets for
ftruncate()/truncate(). It works on 64 bit machines where
sizeof(size_t) == sizeof(off_t) == 8, but breaks for big offsets on 32 bit
machines because sizeof(size_t) == 4 and sizeof(off_t) == 8
BUG: 1129939
Change-Id: Ia2637be772ba9b11731d59fdbffbd269f0ff56c8
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/8742
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'doc/code')
0 files changed, 0 insertions, 0 deletions