[Mono-bugs] [Bug 45066][Nor] Changed - FileSystemInfo.CreationTime does not stick (MonoIO.SetFileTime())
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 6 Nov 2003 01:25:02 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by rkumar@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=45066
--- shadow/45066 2003-06-18 10:50:33.000000000 -0400
+++ shadow/45066.tmp.17532 2003-11-06 01:25:01.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 45066
Product: Mono/Class Libraries
Version: unspecified
OS: Red Hat 8.0
OS Details:
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: NOTABUG
+Severity: Unknown
Priority: Normal
Component: CORLIB
AssignedTo: mono-bugs@ximian.com
ReportedBy: ndrochak@gol.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -35,6 +35,21 @@
Console.WriteLine ("Passed");
} finally {
Directory.Delete (path, true);
}
}
}
+
+------- Additional Comments From rkumar@novell.com 2003-11-06 01:25 -------
+It is not possible to set file creation time on Linux. In Mono,
+file_setfiletime() function in "/src/mono-0.28/mono/io-layer/io.c"
+uses fstat and utime system calls to get/set file time stamps. And,
+utime() call does not allow setting the creation time. I collected
+following information from Internet and man pages. 'UNIX file system
+and Ext (Linux file system) do not keep track of file creation time
+as such. Every file is attached with three time stamps, accessTime,
+changeTime and modificationTime. The changeTime refers to the time
+when any of file attributes e.g. file size, file permissions etc are
+changed. I read one guy quoting that notion of creation time on Linux
+is the time when any inode is modified.'
+After going through all this, I don't think if this defect can be
+fixed on Linux.