[Bugs] [Bug 1468118] New: disperse seek does not correctly handle the end of file
bugzilla at redhat.com
bugzilla at redhat.com
Thu Jul 6 06:18:39 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1468118
Bug ID: 1468118
Summary: disperse seek does not correctly handle the end of
file
Product: GlusterFS
Version: 3.11
Component: disperse
Keywords: Triaged
Assignee: bugs at gluster.org
Reporter: pkarampu at redhat.com
CC: bugs at gluster.org, pkarampu at redhat.com,
xhernandez at datalab.es
Depends On: 1449348
+++ This bug was initially created as a clone of Bug #1449348 +++
Description of problem:
A seek with SEEK_HOLE can return an offset bigger than the file size.
Additionally some offsets beyond the file size do return a valid answer instead
of ENXIO as they should.
Version-Release number of selected component (if applicable): mainline
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
--- Additional comment from Worker Ant on 2017-05-09 13:43:17 EDT ---
REVIEW: https://review.gluster.org/17228 (cluster/ec: correctly handle end of
file for seek) posted (#1) for review on master by Xavier Hernandez
(xhernandez at datalab.es)
--- Additional comment from Worker Ant on 2017-05-09 14:12:33 EDT ---
REVIEW: https://review.gluster.org/17228 (cluster/ec: correctly handle end of
file for seek) posted (#2) for review on master by Xavier Hernandez
(xhernandez at datalab.es)
--- Additional comment from Worker Ant on 2017-05-11 03:24:14 EDT ---
REVIEW: https://review.gluster.org/17228 (cluster/ec: correctly handle end of
file for seek) posted (#3) for review on master by Xavier Hernandez
(xhernandez at datalab.es)
--- Additional comment from Worker Ant on 2017-07-06 02:17:48 EDT ---
COMMIT: https://review.gluster.org/17228 committed in master by Pranith Kumar
Karampuri (pkarampu at redhat.com)
------
commit eb96dd45f8e583c6bad84bf32ca17e2bb01dd38f
Author: Xavier Hernandez <xhernandez at datalab.es>
Date: Tue May 9 19:40:21 2017 +0200
cluster/ec: correctly handle end of file for seek
When a SEEK_HOLE was issued near to the end of file, sometimes an
offset beyond the end of file was returned. Another problem was that
using some offsets greater than the end of file returned successfully
instead of failing with ENXIO.
Change-Id: I238d2884ba02fd19a78116b0f8f8e8d6338fb3f5
BUG: 1449348
Signed-off-by: Xavier Hernandez <xhernandez at datalab.es>
Reviewed-on: https://review.gluster.org/17228
Smoke: Gluster Build System <jenkins at build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
Reviewed-by: Amar Tumballi <amarts at redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1449348
[Bug 1449348] disperse seek does not correctly handle the end of file
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list