[
https://issues.apache.org/jira/browse/HDFS-8033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14391026#comment-14391026
]
Zhe Zhang commented on HDFS-8033:
---------------------------------
Thanks for the question Rui. Similar to UNIX, HDFS provides both _read_ and
_pread_ semantics. In a nutshell, _pread_ doesn't modify the state of the file
descriptor, like the current position. For example, when you do _read()_,
_pread()_, _read()_, then second _read()_ will resume from the position after
the first _read()_.
Please also refer to [this |
http://stackoverflow.com/questions/1687275/what-is-the-difference-between-read-and-pread-in-unix]
> Erasure coding: stateful (non-positional) read from files in striped layout
> ---------------------------------------------------------------------------
>
> Key: HDFS-8033
> URL: https://issues.apache.org/jira/browse/HDFS-8033
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Zhe Zhang
> Assignee: Zhe Zhang
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)