Re: FireWire HD and getFileSystemInfoForPath
Re: FireWire HD and getFileSystemInfoForPath
- Subject: Re: FireWire HD and getFileSystemInfoForPath
- From: Brian Bergstrand <email@hidden>
- Date: Wed, 12 Jan 2005 15:57:46 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Because the media (which is the hard disk) is not removable (not sure
why unmountable is set -- maybe because there are open files).
In addition to removable media, there is also the notion of external
media. External is determined by the bus type (FW, USB). The Finder
usually presents these two distinct types as a union under the guise of
eject-able media. However that luxury is not afforded to your
application. You will have to use I/O kit to get that information (I
know of no high-level way from Apple).
I've written a high-level disk management framework that allows you get
very detailed info about a disk or partition (including the bus
transport type):
<http://cvs.sourceforge.net/viewcvs.py/ext2fsx/src/extfsmgr/>
It's fully header doc'd, under a BSD license and you should be able to
integrate it into your app in less than 1/2 hour.
HTH.
On Jan 12, 2005, at 2:47 PM, Edward Hillenbrand wrote:
> Hi List,
>
> Why does
> getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:
> description:type: set the removableFlag to NO and the unmountableFlag
> to NO when I pass it the path to my FireWire HD?
>
> It works as expected when I give it the path to a disk image. Is
> there a better way to determine if my application is being launched
> from removable media.
>
> Thanks,
> Edward Hillenbrand
>
Brian Bergstrand <http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <http://www.bergstrand.org/brian/misc/public_key.txt>
History teaches us that men and nations behave wisely once they have
exhausted all other alternatives. - Abba Eban
As of 03:43:33 PM, iTunes is playing "Blow Up the Outside World" from
"Down on the Upside" by "Soundgarden"
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
iQA/AwUBQeWPUnnR2Fu2x7aiEQKWSACfZYx0RM+X9xcYNW8ZPC6vCCO+1IcAoP0A
U8ol68fd4rtjMPlPQvXWu0uP
=tl78
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden