소스 검색

forget to change size

Corentin Salingue 12 년 전
부모
커밋
35b65e76a8
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/core/disk_ops/disk_stdio.c
  2. 1 0
      src/core/disk_ops/unistd/disk_unistd_global.c

+ 1 - 0
src/core/disk_ops/disk_stdio.c

@@ -300,6 +300,7 @@ starpu_stdio_full_write (unsigned node, void * base STARPU_ATTRIBUTE_UNUSED, voi
 #endif
 
 			STARPU_ASSERT_MSG(val >= 0,"StarPU Error to truncate file in STDIO full_write function");
+			tmp->size = size;
 		}
 		else
 		{

+ 1 - 0
src/core/disk_ops/unistd/disk_unistd_global.c

@@ -268,6 +268,7 @@ starpu_unistd_global_full_write (unsigned node, void * base STARPU_ATTRIBUTE_UNU
 #endif
 
                         STARPU_ASSERT_MSG(val >= 0,"StarPU Error to truncate file in UNISTD full_write function");
+			tmp->size = size;
                 }
                 else
                 {