Re: vode to pathname

From: Dag-Erling Smørgrav (des_at_des.no)
Date: 08/24/05

  • Next message: victor cruceru: "Re: Enumerating devices and hardware conf from userland"
    To: kamalp@acm.org
    Date: Wed, 24 Aug 2005 14:54:08 +0200
    
    

    "Kamal R. Prasad" <kamalpr@yahoo.com> writes:
    > So the question is, how do I get hold of pathname given
    > vnode*/(inode, devno, generation no) -without relying on the name
    > cache (on freebsd)?

    You can't. The semantics of Unix file systems are such that the
    mapping from file name to file is one-way. Furthermore, a file can be
    associated with more than one file name, or even none at all (if it
    has been unlinked but is still held open by a process).

    DES

    -- 
    Dag-Erling Smørgrav - des@des.no
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: victor cruceru: "Re: Enumerating devices and hardware conf from userland"

    Relevant Pages

    • SMP on FreeBSD 6.x and 7.0: Worth doing?
      ... I will need to build several Web caches over the next few months, and just took advantage of the Christmas lull to test FreeBSD 7.0 BETA 4 to see how it will perform at this task. ... I built up a 4 core FreeBSD box, and asked a friend who's a Linux fanatic to do the same with Linux on identical hardware. ... The fetches done by each process are the same batch of URLS, but shuffled differently, so each URL will get a miss the first time and then hits each time it comes up thereafter unless the cache overflows. ... Could it be that there less concurrency or more overhead in FreeBSD file operations than there is in Linux? ...
      (freebsd-stable)
    • MegaRAID lockups under 5.5 PRELEASE
      ... on-board battery backed cache, while the main machine has 256Mb. ... FreeBSD and this model of controller. ... after some driver improvements by Scott Long. ... the other box has remained stable after the same upgrade, ...
      (freebsd-stable)
    • Re: How does disk caching work?
      ... > Is there a document anywhere that describes in detail how FreeBSD ... > such as 'FreeBSD uses all available memory for disk caching'. ... MEMORY IS A BUFFER CACHE for all device IO. ...
      (freebsd-performance)
    • Re: Concealing short disconnects
      ... >I have a few machines behind my FreeBSD box. ... >to ISP via ppp (PPPoE protocol). ... >reconnect in just a moment - so the diconnect is usually less ... that acts as a cache hold a few seconds of network traffic that would ...
      (freebsd-questions)
    • [Full-Disclosure] FreeBSD Security Advisory FreeBSD-SA-03:08.realpath
      ... absolute pathname from a given pathname which may contain extra ... The realpathfunction is part of the FreeBSD ... several applications use realpath. ... To patch your present system: ...
      (Full-Disclosure)