Re: Finding moved files by file descriptor or inode
Re: Finding moved files by file descriptor or inode
- Subject: Re: Finding moved files by file descriptor or inode
- From: Paul Schulze <email@hidden>
- Date: Wed, 9 Aug 2006 20:13:38 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Deric,
By using PBResolveFileIDRefSync, I have two problems: The first is,
that this part of the API seems to be very old, so it may become
depecated. Dunno, if or if not, that would propably not stop me from
using it for now. The second and major problem I have is, that I
studied everything that seems to be useful about it for three days
now, but simply I don't get it at all. Everytime, I've assambled the
pieces, one is still missing. Those data types drive me crazy, I
don't even know, which one is compatible to the types, I use. One
thing, I ever miss, is f.e. the filesystem ref, dunno how to get this
one without going circles in the carbon API (I assume, this method
fits in there). Isn't there a cocoa way to do this, I can't learn the
carbon stuff as well for now, I've to learn the important stuff on
cocoa first.
Anyway many thanks for your answer,
Paul.
- --
Paul Schulze
email@hidden
Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc
"There is a theory which states that if ever anyone discovers what the
universe is for and why it is here, it will instantly disappear and be
replaced by something even more bizarre and inexplicable.
There is another states that this has already happened."
(Douglas Adams)
Am 08.08.2006 um 02:43 schrieb Deric Horn:
Hello Paul,
The inode number corresponds to the fileID, so you should be able
to call
PBResolveFileIDRefSync.
Doing a search in Google for "PBResolveFileIDRefSync" turns up some
related
discussions.
Deric Horn
Mac OS X Application Frameworks Evangelist
Apple Worldwide Developer Relations
email@hidden
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
And another question from a noob:
Is it possible to somehow locate a file by i-node or file descriptor?
I've implemented a kqueue wrapper, that may even send the "correct"
message, if a file has been written atomically, whats missing is
tracking moved files. So I have an open file descriptor and may
retrieve the i-node number from it, using stat() (thats the only
thing, I came across by now, for getting some in this case useful
information by file descriptor). I could call find and parse its
output, but that would possibly make the users mac unusable for the
next two hours, because he just wanted to move a file. So is there
anything else, I may try?
Thanks in advance,
Paul.
P.S.: Thanks to Joah, Uli and Rosyna for your help, with the file
changed notification.
- --
Paul Schulze
email@hidden
Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc
"There is a theory which states that if ever anyone discovers what
the
universe is for and why it is here, it will instantly disappear
and be
replaced by something even more bizarre and inexplicable.
There is another states that this has already happened."
(Douglas Adams)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFE19F6YDWOGtiChoARApZoAKCGLUP8wMVj8oFm1pKu4V51TLI1mQCeN5f+
EFxHuvKMLfWkDqWsrSsg1os=
=4CfR
-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFE2iXWYDWOGtiChoARAm1XAJ4oCJzAHOXjP6sue+H85HWCivcuvQCeO3n8
bn/WP2QIsXhKIXLETTCTWMk=
=h0dQ
-----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