From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 20 16:22:17 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FEA316A4CE for ; Sun, 20 Feb 2005 16:22:17 +0000 (GMT) Received: from f21.mail.ru (f21.mail.ru [194.67.57.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id F247543D1D for ; Sun, 20 Feb 2005 16:22:14 +0000 (GMT) (envelope-from shmukler@mail.ru) Received: from mail by f21.mail.ru with local id 1D2tqX-0003GO-00 for freebsd-hackers@freebsd.org; Sun, 20 Feb 2005 19:22:13 +0300 Received: from [24.185.245.107] by win.mail.ru with HTTP; Sun, 20 Feb 2005 19:22:13 +0300 From: Igor Shmukler To: freebsd-hackers@freebsd.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [24.185.245.107] Date: Sun, 20 Feb 2005 19:22:13 +0300 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Subject: vn_fullpath() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Igor Shmukler List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2005 16:22:17 -0000 Hello, I was wondering if anyone has figured a way to make vn_fullpath() reliable? Perhaps there is another approach to attacking this problem. Here is what I need to accomplish: I need to be able to determine dynamic linker, shared libraries or executable name for a specific process. The alternative to vn_fullpath() is intercepting calls, however I need an interpreter name in case of a script. The problem with name cache is: a. name has to be in the cache b. hardlinks cause vnodes with multiple names This must be a common problem so I was curious whether there is a solution. If anyone has any experience making this work, please advise. Thank you, Igor.