|
|
| version 1.333, 2007/09/12 04:04:58 | version 1.334, 2007/09/21 16:10:12 |
|---|---|
| Line 164 static void xfsidbg_xlog_tic(xlog_ticket | Line 164 static void xfsidbg_xlog_tic(xlog_ticket |
| static void xfsidbg_xlogitem(xfs_log_item_t *); | static void xfsidbg_xlogitem(xfs_log_item_t *); |
| static void xfsidbg_xmount(xfs_mount_t *); | static void xfsidbg_xmount(xfs_mount_t *); |
| static void xfsidbg_xnode(xfs_inode_t *ip); | static void xfsidbg_xnode(xfs_inode_t *ip); |
| static void xfsidbg_xcore(xfs_iocore_t *io); | |
| static void xfsidbg_xperag(xfs_mount_t *); | static void xfsidbg_xperag(xfs_mount_t *); |
| static void xfsidbg_xqm_diskdq(xfs_disk_dquot_t *); | static void xfsidbg_xqm_diskdq(xfs_disk_dquot_t *); |
| static void xfsidbg_xqm_dqattached_inos(xfs_mount_t *); | static void xfsidbg_xqm_dqattached_inos(xfs_mount_t *); |
| Line 1472 static int kdbm_xfs_xnode( | Line 1471 static int kdbm_xfs_xnode( |
| return 0; | return 0; |
| } | } |
| static int kdbm_xfs_xcore( | |
| int argc, | |
| const char **argv) | |
| { | |
| unsigned long addr; | |
| int nextarg = 1; | |
| long offset = 0; | |
| int diag; | |
| if (argc != 1) | |
| return KDB_ARGCOUNT; | |
| diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, NULL); | |
| if (diag) | |
| return diag; | |
| xfsidbg_xcore((xfs_iocore_t *) addr); | |
| return 0; | |
| } | |
| static int kdbm_xfs_xperag( | static int kdbm_xfs_xperag( |
| int argc, | int argc, |
| const char **argv) | const char **argv) |
| Line 2552 static struct xif xfsidbg_funcs[] = { | Line 2532 static struct xif xfsidbg_funcs[] = { |
| "Dump XFS mount structure"}, | "Dump XFS mount structure"}, |
| { "xnode", kdbm_xfs_xnode, "<xfs_inode_t>", | { "xnode", kdbm_xfs_xnode, "<xfs_inode_t>", |
| "Dump XFS inode"}, | "Dump XFS inode"}, |
| { "xiocore", kdbm_xfs_xcore, "<xfs_iocore_t>", | |
| "Dump XFS iocore"}, | |
| { "xperag", kdbm_xfs_xperag, "<xfs_mount_t>", | { "xperag", kdbm_xfs_xperag, "<xfs_mount_t>", |
| "Dump XFS per-allocation group data"}, | "Dump XFS per-allocation group data"}, |
| { "xqinfo", kdbm_xfs_xqm_qinfo, "<xfs_mount_t>", | { "xqinfo", kdbm_xfs_xqm_qinfo, "<xfs_mount_t>", |
| Line 6588 xfsidbg_xnode(xfs_inode_t *ip) | Line 6566 xfsidbg_xnode(xfs_inode_t *ip) |
| xfs_ipincount(ip)); | xfs_ipincount(ip)); |
| kdb_printf("udquotp 0x%p gdquotp 0x%p\n", | kdb_printf("udquotp 0x%p gdquotp 0x%p\n", |
| ip->i_udquot, ip->i_gdquot); | ip->i_udquot, ip->i_gdquot); |
| kdb_printf("new_size %Ld\n", ip->i_iocore.io_new_size); | kdb_printf("new_size %Ld\n", ip->i_new_size); |
| printflags((int)ip->i_flags, tab_flags, "flags"); | printflags((int)ip->i_flags, tab_flags, "flags"); |
| kdb_printf("\n"); | kdb_printf("\n"); |
| kdb_printf("update_core %d update size %d\n", | kdb_printf("update_core %d update size %d\n", |
| Line 6628 xfsidbg_xnode(xfs_inode_t *ip) | Line 6606 xfsidbg_xnode(xfs_inode_t *ip) |
| xfs_prdinode_incore(&ip->i_d); | xfs_prdinode_incore(&ip->i_d); |
| } | } |
| static void | |
| xfsidbg_xcore(xfs_iocore_t *io) | |
| { | |
| kdb_printf("io_obj 0x%p io_flags 0x%x io_mount 0x%p\n", | |
| io->io_obj, io->io_flags, io->io_mount); | |
| kdb_printf("new_size %Lx\n", io->io_new_size); | |
| } | |
| /* | /* |
| * Print xfs per-ag data structures for filesystem. | * Print xfs per-ag data structures for filesystem. |
| */ | */ |