[Mono-bugs] [Bug 50298][Nor] New - File.Move does not work across different filesystems

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 29 Oct 2003 05:43:10 -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 joergr@voelcker.com.

http://bugzilla.ximian.com/show_bug.cgi?id=50298

--- shadow/50298	2003-10-29 05:43:10.000000000 -0500
+++ shadow/50298.tmp.25570	2003-10-29 05:43:10.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 50298
+Product: Mono/Runtime
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: File.Move does not work across different filesystems
+
+Description of Problem:
+If you try to move a file between different filesystems an exception is raised.
+
+Steps to reproduce the problem:
+1. Mount a remote filesystem or another partition
+2. Move a file between using the attached sample between remote and local
+filesystems
+
+Actual Results (sorry, german system):
+** Message: [Invalid UTF-8] Unknown errno: Ungültiger Link über
+Gerätegrenzen hinweg
+
+
+Unhandled Exception: System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE
+in <0x003d0> System.IO.File:Move (string,string)
+in <0x00033> MoveTest.MoveTest:Main (string[])
+
+
+Expected Results:
+No exception.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+The function MoveFile in io.c uses the standard C API rename to move the
+file which doesn't work in this context.