From f3ecf93d37877f5c7bf4f4298ed011ae84e86e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 12 Jan 2008 23:45:11 +0000 Subject: [PATCH] Added the cookie/private_node fields to the mounts/vnodes list in KDL. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23455 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index 9328a0a51a..1f14040386 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -2379,12 +2379,12 @@ dump_mounts(int argc, char **argv) struct hash_iterator iterator; struct fs_mount *mount; - kprintf("address id root covers fs_name\n"); + kprintf("address id root covers cookie fs_name\n"); hash_open(sMountsTable, &iterator); while ((mount = (struct fs_mount *)hash_next(sMountsTable, &iterator)) != NULL) { - kprintf("%p%4ld %p %p %s\n", mount, mount->id, mount->root_vnode, - mount->covers_vnode, mount->fs_name); + kprintf("%p%4ld %p %p %p %s\n", mount, mount->id, mount->root_vnode, + mount->covers_vnode, mount->cookie, mount->fs_name); } hash_close(sMountsTable, &iterator, false); @@ -2446,17 +2446,18 @@ dump_vnodes(int argc, char **argv) struct hash_iterator iterator; struct vnode *vnode; - kprintf("address dev inode ref cache locking flags\n"); + kprintf("address dev inode ref cache fs-node locking " + "flags\n"); hash_open(sVnodeTable, &iterator); while ((vnode = (struct vnode *)hash_next(sVnodeTable, &iterator)) != NULL) { if (device != -1 && vnode->device != device) continue; - kprintf("%p%4ld%10Ld%5ld %p %p %s%s%s\n", vnode, vnode->device, vnode->id, - vnode->ref_count, vnode->cache, vnode->advisory_locking, - vnode->remove ? "r" : "-", vnode->busy ? "b" : "-", - vnode->unpublished ? "u" : "-"); + kprintf("%p%4ld%10Ld%5ld %p %p %p %s%s%s\n", vnode, vnode->device, + vnode->id, vnode->ref_count, vnode->cache, vnode->private_node, + vnode->advisory_locking, vnode->remove ? "r" : "-", + vnode->busy ? "b" : "-", vnode->unpublished ? "u" : "-"); } hash_close(sVnodeTable, &iterator, false);