Date: Mon, 05 Sep 2005 17:52:16 +0400 From: Sergey Uvarov <uvarovsl@mail.pnpi.spb.ru> To: freebsd-hackers@freebsd.org Subject: vn_fullpath() again Message-ID: <431C4D90.2010602@mail.pnpi.spb.ru>
next in thread | raw e-mail | index | archive | help
Hello hackers, all knows that vn_fullpath() is unreliable. However I really need to get a filename for a given vnode. To simplify the task, I do not care of synthetic file systems or hardlinks. I have looked through archives in hope to find a better solution. It seems that linux_getcwd() approach could help. However to make that code work for me, I need to know a directory vnode where the file resides. vnode->v_dd field looks promising. But as I understand it did not help if file name is not in a name cache. So the question: is it ever possible to get directory vnode for a given file vnode? Thank you in advance, Sergey.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?431C4D90.2010602>