[Bugs] [Bug 1469487] sys_xxx() functions should guard against bad return values from fs

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 6 15:10:14 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1469487



--- Comment #19 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18951 committed in experimental by \"Kotresh
HR\" <khiremat at redhat.com> with a commit message- libglusterfs: Handle FS
errors gracefully

Problem:
FS sometimes doesn't give the expected return values. We need our common
functions to guard against this.
Example BUG: https://bugzilla.redhat.com/show_bug.cgi?id=864401

Fix:
When the return value is not as per specification, change the return value
to -1 and errno to EIO

BUG: 1469487
Change-Id: Id23fdbcf7aefc4f779e76db824cb4c74d580de1f
Signed-off-by: Pranith Kumar K <pkarampu at redhat.com>

-- 
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