[
https://issues.apache.org/jira/browse/HDFS-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468885#comment-13468885
]
Eli Collins commented on HDFS-3431:
-----------------------------------
Yea, I don' think we support truncate in fuse until we support it (if we ever
do) in HDFS (HDFS-3107). Currently the only truncate we support is create +
overwrite.
> Improve fuse-dfs truncate
> -------------------------
>
> Key: HDFS-3431
> URL: https://issues.apache.org/jira/browse/HDFS-3431
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: fuse-dfs
> Reporter: Eli Collins
> Priority: Minor
>
> Fuse-dfs truncate only works for size == 0 and per the function's comment is
> a "Weak implementation in that we just delete the file and then re-create it,
> but don't set the user, group, and times to the old file's metadata". Per
> HDFS-860 we should ENOTSUP when the size != 0 or the size of the file.
> Also, we should implement the ftruncate system call in FUSE.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira