procfs: Decode mount point path in /proc/<pid>/map.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 1 Nov 2010 16:57:21 +0000 (09:57 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 1 Nov 2010 16:57:21 +0000 (09:57 -0700)
This will make /proc/<pid>/map output more readable on HAMMER mounts.

sys/vfs/procfs/procfs_map.c

index dd61513..7ae9ec9 100644 (file)
@@ -153,7 +153,7 @@ procfs_domap(struct proc *curp, struct lwp *lp, struct pfsnode *pfs,
                        ref_count = obj->ref_count;
                        shadow_count = obj->shadow_count;
                        if (vp != NULL) {
-                               vn_fullpath(p, vp, &fullpath, &freepath, 0);
+                               vn_fullpath(p, vp, &fullpath, &freepath, 1);
                                vrele(vp);
                        }
                } else {