[Mono-bugs] [Bug 318853] UnixDriveInfo broken

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 17 11:03:08 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=318853

User jpryor at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=318853#c6


Jonathan Pryor <jpryor at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |jpryor at novell.com




--- Comment #6 from Jonathan Pryor <jpryor at novell.com>  2007-12-17 09:03:08 MST ---
I've made the change mentioned in Comment #3 so that IsReady only returns true
if  the f_fsid of the mount point differs from that of its parent directory.

2007-12-17  Jonathan Pryor  <jonpryor at vt.edu>

        * UnixDirectoryInfo.cs: Fix Parent property so that it properly handles
          returning the parent of "/".  UnixPath.GetDirectoryName() returns ""
on
          "error", not null; act accordingly.
        * UnixDriveInfo.cs: Fix IsReady property so that it returns `false' if
no
          media is mounted.  The presence of media is determined by comparing
the
          Statvfs.f_fsid value of the current and parent directories; if they
          differ, it is assumed that media is present, and thus the directory
is
          ready.  If they're identical, then media isn't present, and the
directory
          isn't ready.
        * UnixPath.cs: UnixPath.GetDirectoryName("/mnt") should return "/", not
"".


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list