From 90a3fee51d08d78ef09ea29055ed75af275d419b Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Fri, 25 Sep 2015 17:10:04 +0200 Subject: [PATCH] Revert "you can overwrite part of a file without mofiying its size" This reverts commit 1834c35134cafa950a91101cd69dcc64d14f062d. --- src/surf/storage_n11.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index 6baacc2658..42fef37138 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -332,10 +332,8 @@ void StorageN11Model::updateActionsState(double /*now*/, double delta) action->p_storage->m_usedSize += incr; // disk usage action->p_file->current_position+= incr; // current_position - // which becomes the new file size only if it's greater than the current - // file size - if (action->p_file->current_position > action->p_file->size) - action->p_file->size = action->p_file->current_position ; + // which becomes the new file size + action->p_file->size = action->p_file->current_position ; sg_size_t *psize = xbt_new(sg_size_t,1); *psize = action->p_file->size; -- 2.20.1