DragonFly submit List (threaded) for 2008-01
DragonFly BSD
DragonFly submit List (threaded) for 2008-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: vnconfig -l support patch (Re: vn(4) RFC Misc.)


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 14 Jan 2008 07:50:53 -0800 (PST)

::   Also, I'm not sure if I needed to lock anything before using
::   the vfs cache, so there might be problems there.
:
:    I'd suggest just constructing the path by hand and assuming the
:    form "/dev/vn*".  The namecache reference is not guarenteed
:    to exist... for example, the namecache can get flushed.

    Oh, scratch that comment.  You were trying to get the path to the
    file VN was covering.

    Use vn_fullpath() and pass 'curproc' as the process, though, instead
    of cache_fullpath(), and note that it might fail (maybe have it print
    '?' for the filename if it fails).  If the process is non-NULL
    vn_fullpath()/cache_fullpath() will truncate the path properly to
    the process's chroot.

						-Matt




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]