diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 67d5c81bcba..5bc5b6a1721 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -697,6 +697,9 @@ Release 2.0.0-alpha - UNRELEASED HDFS-3026. HA: Handle failure during HA state transition. (atm) + HDFS-860. fuse-dfs truncate behavior causes issues with scp. + (Brian Bockelman via eli) + BREAKDOWN OF HDFS-1623 SUBTASKS HDFS-2179. Add fencing framework and mechanisms for NameNode HA. (todd) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/fuse-dfs/src/fuse_impls_truncate.c b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/fuse-dfs/src/fuse_impls_truncate.c index 86cda786e71..7357b4cc421 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/fuse-dfs/src/fuse_impls_truncate.c +++ b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/fuse-dfs/src/fuse_impls_truncate.c @@ -37,7 +37,7 @@ int dfs_truncate(const char *path, off_t size) assert(dfs); if (size != 0) { - return -ENOTSUP; + return 0; } int ret = dfs_unlink(path);