DragonFly kernel List (threaded) for 2004-06
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
working with vn_fullpath
Hi,
I am porting my VFS filesystem event stuff to dragonfly
and getting rid of some old workarounds.
I need to convert a vnode to it's pathname and I thought
logically that vn_fullpath() would be the right solution.
Unfortunately it fails with ENOENT.
Are there any specific rules to using this function?
Here is an example of what failed for me:
(part of kern_unlink in vfs_syscalls.c ---not complete---)
. ...
VOP_LEASE(vp, td, p->p_ucred, LEASE_WRITE);
vn_lock(vp, NULL, LK_EXCLUSIVE | LK_RETRY, td);
if (vn_fullpath(td->td_proc, vp, &fullpath, &freepath) == 0) {
printf ("got path %s\n", fullpath);
}
free(freepath, M_TEMP);
,,,,,
Any hints would be appreciated!
Many thanks in advance
Andy
<
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]