[
https://issues.apache.org/jira/browse/HDFS-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13277262#comment-13277262
]
Eli Collins commented on HDFS-860:
----------------------------------
We have HdfsDataInputstream#getVisibleLength, it's not plumbed through to
libhdfs.
> fuse-dfs truncate behavior causes issues with scp
> -------------------------------------------------
>
> Key: HDFS-860
> URL: https://issues.apache.org/jira/browse/HDFS-860
> Project: Hadoop HDFS
> Issue Type: Wish
> Components: contrib/fuse-dfs
> Reporter: Brian Bockelman
> Assignee: Brian Bockelman
> Priority: Minor
> Fix For: 2.0.0
>
> Attachments: HDFS-860.patch, hdfs-860.txt
>
>
> For whatever reason, scp issues a "truncate" once it's written a file to
> truncate the file to the # of bytes it has written (i.e., if a file is X
> bytes, it calls truncate(X)).
> This fails on the current fuse-dfs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira