path: root/heal/src/glfs-heal.c
diff options
authorAnoop C S <>2016-02-10 17:08:26 +0530
committerNiels de Vos <>2016-02-11 02:59:39 -0800
commit095e2c48271a5248c8711a4e6a34bcb4d44c440e (patch)
tree7a444246673189bef1ba851eeb1345c62eafaf6c /heal/src/glfs-heal.c
parent444378de64f398c4e19468e83ac31fccc0a94800 (diff)
api: glfs_lseek must return repositioned offset for SEEK_SET, SEEK_CUR flags
On success, glfs_lseek() API is responsible for providing the repositioned offset as its return value. But for SEEK_SET and SEEK_CUR flags, glfs_lseek() returns -1 on successfully repositioning the fd offset. Current change is to set ret to 0 after glfd->offset is modified correctly so as to return the correct offset. Change-Id: I94d582779a98074cf633289f4b60b3c6a04e4f18 BUG: 1306264 Signed-off-by: Anoop C S <> Reviewed-on: Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: jiffin tony Thottan <> Reviewed-by: Niels de Vos <>
Diffstat (limited to 'heal/src/glfs-heal.c')
0 files changed, 0 insertions, 0 deletions