Jeff Liu 65622e647b ocfs2: for SEEK_DATA/SEEK_HOLE, return internal error unchanged if ocfs2_get_clusters_nocache() or ocfs2_inode_lock() call failed.
Hello,

Since ENXIO only means "offset beyond EOF" for SEEK_DATA/SEEK_HOLE,
Hence we should return the internal error unchanged if ocfs2_inode_lock() or
ocfs2_get_clusters_nocache() call failed rather than ENXIO.
Otherwise, it will confuse the user applications when they trying to understand the root cause.

Thanks Dave for pointing this out.

Thanks,
-Jeff

Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
2012-07-03 23:27:16 -07:00
..
2011-07-25 14:30:23 -04:00
2011-07-28 02:07:16 -07:00
2010-09-10 09:18:15 -07:00
2012-05-29 23:28:33 -04:00
2011-07-25 14:58:15 -07:00
2012-05-29 23:28:40 -04:00
2011-07-28 02:07:16 -07:00
2012-05-29 23:28:35 -04:00
2011-03-07 16:43:21 +08:00
2011-02-21 11:18:23 +08:00
2011-07-24 10:36:54 -07:00
2012-05-29 23:28:40 -04:00
2011-05-23 23:37:20 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-07-24 10:34:54 -07:00
2012-01-04 08:56:31 -06:00
2011-03-31 11:26:23 -03:00
2012-05-29 23:28:40 -04:00
2012-05-29 23:28:40 -04:00
2011-02-24 16:22:20 +08:00
2012-01-03 22:55:02 -05:00
2012-01-03 22:55:02 -05:00