Просмотр исходного кода

2006-02-22 Joerg Rosenkranz <[email protected]>

        * MonoIO.cs, MonoIOError.cs: Verbose exception for error 39
          (disk full).


svn path=/trunk/mcs/; revision=57155
Joerg Rosenkranz 20 лет назад
Родитель
Сommit
450e42412f

+ 5 - 0
mcs/class/corlib/System.IO/ChangeLog

@@ -1,3 +1,8 @@
+2006-02-22  Joerg Rosenkranz <[email protected]>
+
+	* MonoIO.cs, MonoIOError.cs: Verbose exception for error 39 
+	  (disk full).
+	  
 2006-02-03  Zoltan Varga  <[email protected]>
 
 	* Stream.cs FileStream.cs: Add new 2.0 Dispose () method and protected

+ 5 - 1
mcs/class/corlib/System.IO/MonoIO.cs

@@ -106,7 +106,11 @@ namespace System.IO
 			case MonoIOError.ERROR_LOCK_VIOLATION:
 				message = String.Format ("Lock violation on path {0}", path);
 				return new IOException (message, unchecked((int)0x80070000) | (int)error);
-
+			
+			case MonoIOError.ERROR_HANDLE_DISK_FULL:
+				message = String.Format ("Disk full. Path {0}", path);
+				return new IOException (message, unchecked((int)0x80070000) | (int)error);
+			
 			case MonoIOError.ERROR_DIR_NOT_EMPTY:
 				message = String.Format ("Directory {0} is not empty", path);
 				return new IOException (message, unchecked((int)0x80070000) | (int)error);

+ 2 - 2
mcs/class/corlib/System.IO/MonoIOError.cs

@@ -72,8 +72,8 @@ namespace System.IO
 	/*	ERROR_WRONG_DISK = 34,
 		ERROR_SHARING_BUFFER_EXCEEDED = 36,
 		ERROR_HANDLE_EOF = 38,
-		ERROR_HANDLE_DISK_FULL = 39,
-		ERROR_NOT_SUPPORTED = 50,
+	*/	ERROR_HANDLE_DISK_FULL = 39,
+	/*	ERROR_NOT_SUPPORTED = 50,
 		ERROR_REM_NOT_LIST = 51,
 		ERROR_DUP_NAME = 52,
 		ERROR_BAD_NETPATH = 53,