diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2014-09-16 17:13:51 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-09-25 11:05:52 -0700 |
commit | 61a7256f977dea586ad62741592f867906a63097 (patch) | |
tree | eccfb9df3d06867030f080547097186326e9177b /libglusterfs/src/syncop.h | |
parent | de39dd2c9ec0b6645c3d859d38780605e8f3a5c2 (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
This is backport of Ia2637be772ba9b11731d59fdbffbd269f0ff56c8
BUG: 1138897
Change-Id: I8fe77a86831f0db4eff5b5c89efe004b9a0b29e9
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/8743
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/syncop.h')
0 files changed, 0 insertions, 0 deletions