Really determining unmountability

  • Can someone point me to a reliable means to determine whether a
    volume can be unmounted? More specifically, a technique to predict
    whether FSEjectVolumeSync should be expected (barring transient
    conditions) to succeed?

    I've gone through PBHGetVolParmsSync, IOKit media properties and
    NSWorkspace's getFileSystemInfoForPath:...; all three give me false
    negatives on non-boot hard drives.

    Obviously there's a way to do it - Finder does - but I'm apparently
    using the wrong search terms in Google and Apple's developer site.

    Thanks in advance.

    Greg
  • Am 01.10.2006 um 14:38 schrieb Gregory Weston:

    > Can someone point me to a reliable means to determine whether a
    > volume can be unmounted? More specifically, a technique to predict
    > whether FSEjectVolumeSync should be expected (barring transient
    > conditions) to succeed?
    >
    > I've gone through PBHGetVolParmsSync, IOKit media properties and
    > NSWorkspace's getFileSystemInfoForPath:...; all three give me false
    > negatives on non-boot hard drives.

    Non-boot hard drives _can_ be unmounted. They can't be removed, though.

    Markus

    - - - - - - - - - - - - - - - - - - -
    Dipl. Ing. Markus Hitter
    http://www.jump-ing.de/
  • On Oct 2, 2006, at 4:30 AM, Markus Hitter wrote:

    >
    > Am 01.10.2006 um 14:38 schrieb Gregory Weston:
    >
    >> Can someone point me to a reliable means to determine whether a
    >> volume can be unmounted? More specifically, a technique to predict
    >> whether FSEjectVolumeSync should be expected (barring transient
    >> conditions) to succeed?
    >>
    >> I've gone through PBHGetVolParmsSync, IOKit media properties and
    >> NSWorkspace's getFileSystemInfoForPath:...; all three give me
    >> false negatives on non-boot hard drives.
    >
    > Non-boot hard drives _can_ be unmounted. They can't be removed,
    > though.

    That's the problem, though. Every method I've tried so far is telling
    me that certain volumes _can't_ be when, in fact, they can.
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today