[Mono-dev] Help needed with UnixDriveInfo

Petri Latvala adrinael at adrinael.net
Wed May 24 09:39:46 EDT 2006


On Wed, May 24, 2006 at 07:36:47AM -0400, Jonathan Pryor wrote:
> In general, you don't, since a mount point can be anywhere...

(Disclaimer: All code and pseudocode in this post are normal C and
normal POSIX, I have no idea what the corresponding things are for
.NET or Mono)

As a side note, it is quite trivial. One can check whether somedir is
a mount point by stat()ing somedir and somedir/.. and comparing their
device (st_dev). Or by checking whether somedir and somedir/.. point
to the same inode on the same device.


-- 
Petri Latvala
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060524/4251e539/attachment.bin 


More information about the Mono-devel-list mailing list