Commit Graph
18 Commits
Author SHA1 Message Date
Marek Safar a336b58fdc Use faster versions of string comparers 2013-02-28 15:42:55 +01:00
Marek Habersack a2165c2829 [runtime] Linux support for statfs and improved drive detection
This introduces support for using statfs(2) on Linux as well as moves parsing of
drive information on Linux to the runtime. Three sources of information about drives
are supported: /proc/self/mountinfo, /proc/mounts and /etc/{mtab,mnttab}. The are
tried in the order given. Also, the code will include information about FUSE drives
with the exclusion of the GNOME gvfs (which is of no use to users).
2011-04-07 09:57:40 +02:00
Miguel de Icaza eeac7e1468 OSX, Win32: Implements support for DriveInfo
This implements support for DriveInfo for OSX and Windows.

On OSX we use statfs system call that provides the filesystem
type information that we need.   On Linux, we continue to fallback
to mtab parsing
2011-03-23 01:55:23 -04:00
Gonzalo Paniagua Javier ae259d8393 [windows] Improve drive search
Windows allows "A", "A:", @"a:\"... as synonyms for the same drive.
	Patch by Vincent Povirk that fixes bug #660911.
2011-01-06 15:54:48 -05:00
Gonzalo Paniagua Javier 7c8a36f5ca [Windows] Implement GetDrives.
Drive names are ok, but the type is always 'Fixed'.
	Fixes bug #660907.
2011-01-06 15:44:28 -05:00
Zoltan Varga 9899a5f249 Change some usages of ArrayList to List<T> to avoid calls to the slow ArrayList.ToArray(Type) method. 2011-01-06 13:11:56 +01:00
Marek Safar 894b26feca Warnings cleanup 2010-10-15 15:20:25 +01:00
Gonzalo Paniagua Javier 46bd5cc8b4 Use UTF8 instead of ASCII when reading mount info
This allows for mount points with UTF8 characters in them.
2010-09-03 17:27:08 -04:00
Gonzalo Paniagua Javier cdf1247873 Linux /proc/mounts might have escaped characters
Translate escaped characters in mount paths.

	Fixes bug #637078.
2010-09-03 16:01:42 -04:00
Miguel de Icaza 5fa7e74ad5 Avoid code duplication
svn path=/trunk/mcs/; revision=146697
2009-11-23 03:44:35 +00:00
Miguel de Icaza 0204abe803 Drop more obsolete defines
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +00:00
Gonzalo Paniagua Javier 883f7e8388 2009-01-08 Christian Prochnow <[email protected]>
* DriveInfo.cs: Added GetDiskFreeSpaceInternal
	to query drive size and free space.
	Added GetDriveTypeInternal to query type of drive.


svn path=/trunk/mcs/; revision=123148
2009-01-12 23:02:46 +00:00
Miguel de Icaza 8e07acf772 Multiple files:
Deals with the extension to Environment.OSVersion.Platform that might return a new
value MacOSX (6) on .NET
 

svn path=/trunk/mcs/; revision=121711
2008-12-17 17:56:25 +00:00
Andreas N 4190732125 2008-05-14 Andreas Nahr <[email protected]>
* DriveInfo.cs: Fix compiler warning

svn path=/trunk/mcs/; revision=103231
2008-05-14 22:25:55 +00:00
Miguel de Icaza 961dfd7ebb Remove debugging message
svn path=/trunk/mcs/; revision=102699
2008-05-07 05:23:56 +00:00
Gert Driesen 698bcb03f7 * DriveInfo.cs: Removed debug code.
svn path=/trunk/mcs/; revision=97145
2008-03-02 19:24:27 +00:00
Dick Porter 5b79519900 2007-04-30 Dick Porter <[email protected]>
* Directory.cs: 
	* FileShare.cs: 
	* DirectoryNotFoundException.cs: 
	* SeekOrigin.cs: 
	* FileAttributes.cs: 
	* IOException.cs: 
	* MemoryStream.cs: 
	* FileMode.cs: 
	* BinaryWriter.cs: 
	* TextWriter.cs: 
	* File.cs: 
	* BinaryReader.cs: 
	* TextReader.cs: 
	* UnmanagedMemoryStream.cs: 
	* StringWriter.cs: 
	* FileAccess.cs: 
	* FileLoadException.cs: 
	* BufferedStream.cs: 
	* Stream.cs: 
	* FileInfo.cs: 
	* FileStream.cs:
	* StringReader.cs: 
	* StreamWriter.cs: 
	* EndOfStreamException.cs: 
	* DriveInfo.cs: 
	* StreamReader.cs: 
	* PathTooLongException.cs: 
	* DriveType.cs: 
	* FileNotFoundException.cs: 2.0 profile updates



svn path=/trunk/mcs/; revision=76495
2007-04-30 14:05:12 +00:00
Miguel de Icaza 1e65a42289 2006-11-26 Miguel de Icaza <[email protected]>
* DriveInfo.cs, DriveType.cs: Add a couple of classes for
	CreativeDocs.Net.  

	Thanks MoMA!  http://www.mono-project.com/Moma


svn path=/trunk/mcs/; revision=68493
2006-11-27 04:21:10 +00:00