2002-09-15 Miguel de Icaza <miguel@ximian.com>
authorMiguel de Icaza <miguel@gnome.org>
Sun, 15 Sep 2002 06:28:54 +0000 (06:28 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 15 Sep 2002 06:28:54 +0000 (06:28 -0000)
* FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
Flush calls fsync().

The API docs show no explicit mention that Flush() should even do
an fsync, I am thinking that we should drop that from the
runtime.

This significantly improves the thumbnail creation in mPhoto

svn path=/trunk/mcs/; revision=7473

mcs/class/corlib/System.IO/ChangeLog
mcs/class/corlib/System.IO/FileStream.cs

index 2ca4d5f94327c0cf65d73b713cff55ee2a7fa58c..5c745c93b4dd0060f501ca3f4da09b3e164d0810 100644 (file)
@@ -1,3 +1,12 @@
+2002-09-15  Miguel de Icaza  <miguel@ximian.com>
+
+       * FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
+       Flush calls fsync().  
+
+       The API docs show no explicit mention that Flush() should even do
+       an fsync, I am thinking that we should drop that from the
+       runtime. 
+
 2002-09-09  Miguel de Icaza  <miguel@ximian.com>
 
        * StreamWriter.cs: When no encoding is provided, create an
index 58ebe46783b666d6f42b549d0b5b58952d58af2c..219942cbeddb29c6c2615180476ab48aa3acd528 100644 (file)
@@ -251,7 +251,7 @@ namespace System.IO
 \r
                protected virtual void Dispose (bool disposing) {\r
                        if (handle != MonoIO.InvalidHandle) {\r
-                               Flush ();\r
+                               FlushBuffer ();\r
                                MonoIO.Close (handle);\r
 \r
                                handle = MonoIO.InvalidHandle;\r