Finding moved files by file descriptor or inode
Finding moved files by file descriptor or inode
- Subject: Finding moved files by file descriptor or inode
- From: Paul Schulze <email@hidden>
- Date: Tue, 8 Aug 2006 01:49:13 +0200
-----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