On Friday, March 13, 2015 at 5:55:58 PM UTC-7, Andrew Gabriel wrote:
> In article <
83d74d8d-7abb-45c0...@googlegroups.com>,
>
>
> Try:
> echo ::lminfo | mdb -k | awk 'NF>5{print $6"::vnode2path"}' | mdb -k
>
heh.
I found a fancier version when I searched around for lminfo.
# from
http://utcc.utoronto.ca/~cks/space/blog/solaris/ListingFileLocks?showcomments
echo '::walk lock_graph | ::print lock_descriptor_t l_vnode | ::vnode2path' | mdb -k | sort
which works great!.... on normal filesystems.
Unfortunately, the backend for our NFS server is SAMFS. whch is somehow immune to ::walk lock_graph
Samfs apparently has its OWNNNN special rwlock tree :(
It is visible with dtrace, I think, since one of the various dtrace sample scripts listed nfsd_kproc as having something.
Unfortunately...I dont know how to translate that stuff, to *filenames*.
Sighhh..