Re: Get proper volume name with FSGetVolumeInfo
Re: Get proper volume name with FSGetVolumeInfo
- Subject: Re: Get proper volume name with FSGetVolumeInfo
- From: "Gurami Palagashvili" <email@hidden>
- Date: Fri, 19 Sep 2008 15:31:34 -0400
Thanks for quick respond.
Application runs as a daemon and I'm running runloop.
Also for testing I created Carbon application with runloop and
use FSGetVolumeInfo to get volume name with the same result, i.e.
if volume renamed FSGetVolumeInfo returns cashed volume names.
Tested on Mac OS X 10.4.11 and 10.5.4
Thanks,
Gurami.
On Fri, Sep 19, 2008 at 3:01 PM,
<email@hidden> wrote:
Send Filesystem-dev mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/filesystem-dev
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Filesystem-dev digest..."
Today's Topics:
1. Get proper volume name with FSGetVolumeInfo (Gurami Palagashvili)
2. Re: Get proper volume name with FSGetVolumeInfo (Quinn)
----------------------------------------------------------------------
Message: 1
Date: Fri, 19 Sep 2008 11:28:33 -0400
From: "Gurami Palagashvili" <email@hidden>
Subject: Get proper volume name with FSGetVolumeInfo
To: email@hidden
Message-ID:
<email@hidden">email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Hi ,
The application runs as a Daemon.
I'm using FSGetVolumeInfo to get volume information in runloop. I'm
monitoring when volume mounted/unmounted , but if volume renamed
FSGetVolumeInfo returns cashed information (incorrect).
Is there any way to reset volume information cash or use any APIs to get
proper volume information after application started and volume information
(volume name ) changed?
Thanks,
Gurami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/filesystem-dev/attachments/20080919/f5155bd7/attachment.html
------------------------------
Message: 2
Date: Fri, 19 Sep 2008 16:38:16 +0100
From: Quinn <email@hidden>
Subject: Re: Get proper volume name with FSGetVolumeInfo
To: email@hidden
Message-ID: <p06240806c4f9778e254d@[10.0.40.15]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
At 11:28 -0400 19/9/08, Gurami Palagashvili wrote:
>The application runs as a Daemon.
Really as a daemon, or as a background only application? See TN2083
for the definitions.
<http://developer.apple.com/technotes/tn2005/tn2083.html>
>I'm using FSGetVolumeInfo to get volume information in runloop. I'm
>monitoring when volume mounted/unmounted , but if volume renamed
>FSGetVolumeInfo returns cashed information (incorrect).
>
>Is there any way to reset volume information cash or use any APIs to
>get proper volume information after application started and volume
>information (volume name ) changed?
File Manager learns about volume changes by installing callbacks on
your runloop. Are you running the runloop?
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
------------------------------
_______________________________________________
Filesystem-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/filesystem-dev
End of Filesystem-dev Digest, Vol 21, Issue 2
*********************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden