From e0b7cbb4f485276a839deeca4d4b586edc6182e6 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Tue, 5 Aug 2003 14:45:46 +0000 Subject: 2003-08-05 Thomas Doerfler PR 439/filesystem *src/dosfs/fat_file.c: flush temporary buffer when closing files --- cpukit/libfs/src/dosfs/fat_file.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpukit/libfs/src/dosfs/fat_file.c b/cpukit/libfs/src/dosfs/fat_file.c index 03ec2de7bd..bc4441da06 100644 --- a/cpukit/libfs/src/dosfs/fat_file.c +++ b/cpukit/libfs/src/dosfs/fat_file.c @@ -228,6 +228,11 @@ fat_file_close( free(fat_fd); } } + /* + * flush any modified "cached" buffer back to disk + */ + rc = fat_buf_release(fs_info); + return rc; } -- cgit v1.2.3