[
https://issues.apache.org/jira/browse/HDFS-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Clampffer updated HDFS-9679:
----------------------------------
Description: It'd be nice to have a version of hdfsSeek that returns the
new offset as a 64 bit int similar to a posix lseek. The underlying C++
implementation already does this for free and doing a seek with whence=SEEK_CUR
and then checking the resulting offset seems like a common operation. (was:
hdfsSeek and hdfsTell in the libhdfs API return int while libhdfs++ uses
int64_t internally. When seeking to the end of very large files the 64->32 bit
narrowing operation done by the bindings gives offset mod 2^32 rather than the
offset.
hdfsSeek64 and hdfsTell64 need to be added to the extended C API to avoid these
issues.)
> libhdfs++: Implement lseek in the extended C API
> ------------------------------------------------
>
> Key: HDFS-9679
> URL: https://issues.apache.org/jira/browse/HDFS-9679
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Reporter: James Clampffer
> Assignee: James Clampffer
>
> It'd be nice to have a version of hdfsSeek that returns the new offset as a
> 64 bit int similar to a posix lseek. The underlying C++ implementation
> already does this for free and doing a seek with whence=SEEK_CUR and then
> checking the resulting offset seems like a common operation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)