• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finding moved files by file descriptor or inode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding moved files by file descriptor or inode


  • Subject: Re: Finding moved files by file descriptor or inode
  • From: Deric Horn <email@hidden>
  • Date: Mon, 07 Aug 2006 17:43:47 -0700
  • Thread-topic: Finding moved files by file descriptor or inode

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


 _______________________________________________
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

  • Follow-Ups:
    • Re: Finding moved files by file descriptor or inode
      • From: Paul Schulze <email@hidden>
References: 
 >Finding moved files by file descriptor or inode (From: Paul Schulze <email@hidden>)

  • Prev by Date: Re: Crashing on all relevant exceptions
  • Next by Date: Re: Context menu over WebView always showing up in bottom left corner of screen
  • Previous by thread: Finding moved files by file descriptor or inode
  • Next by thread: Re: Finding moved files by file descriptor or inode
  • Index(es):
    • Date
    • Thread