Supported by libMapRClient for hadoop-2.x
Moves the current offset to another offset in the specified file.
int hdfsSeek(hdfsFS fs, hdfsFile file, tOffset desiredPos)
| Parameter | Description |
|---|---|
| fs | The handle for the filesystem where the file is
located. Obtain this handle with one of the
hdfsConnect() APIs. |
| file | The handle to the file. Obtain this handle with
one of the hdfsConnect() APIs. |
| desiredPos | The offset to move forward to. |
Returns 0 on success, -1 on error.
Check errno for error codes and meanings.