{"id":3387,"date":"2022-12-20T17:02:31","date_gmt":"2022-12-20T20:02:31","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/jfs_debugfs-man8\/"},"modified":"2022-12-20T17:02:31","modified_gmt":"2022-12-20T20:02:31","slug":"jfs_debugfs-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/jfs_debugfs-man8\/","title":{"rendered":"jfs_debugfs (man8)"},"content":{"rendered":"<h1 align=\"center\">jfs_debugfs<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#COMMANDS\">COMMANDS<\/a><br \/> <a href=\"#REPORTING BUGS\">REPORTING BUGS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_debugfs<\/b> \u2212 shell-type JFS file system editor<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_debugfs<\/b> <i>device<\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>jfs_debugfs<\/b><\/i> is a program which can be used to perform various low-level actions on a JFS formatted device.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>device<\/i> is the special file name corresponding to the actual device to be edited (e.g. <b>\/dev\/hdb1<\/b>).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_debugfs<\/b> must be run as root.<\/p>\n<h2>COMMANDS <a name=\"COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>a[lter]<\/b> <i><block> <offset> <hex_string><\/i><\/p>\n<p style=\"margin-left:22%;\">replaces the data located at the <i><offset><\/i> of <i><block><\/i> with <i><hex_string><\/i><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><block><\/i> is the block number &#8211; given in decimal<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><offset><\/i> is the offset within that block &#8211; given in hexadecimal<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><hex_string><\/i> is an even-numbered string of hexadecimal digits to write to the disk<\/p>\n<p style=\"margin-left:11%;\"><b>b[tree]<\/b> <i><block> [<offset>]<\/i><\/p>\n<p style=\"margin-left:22%;\"><b>* not implemented yet *<\/b> <br \/> displays one node of the btree located at <i><offset><\/i> of <i><block><\/i> and enters a subcommand mode to navigate the btree<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS:<\/b> <br \/> l => visit left sibling <br \/> m => modify current node <br \/> p => visit parent node <br \/> r => visit right sibling <br \/> [0-9] => visit the n\u2019th child node <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>cb[blfsck]<\/b><\/p>\n<p style=\"margin-left:22%;\">displays the area used by ClearBadBlockList for communication with fsck<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS:<\/b> <br \/> m => modify entries <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>dir[ectory]<\/b> <i><inode_number> [<file_set>]<\/i><\/p>\n<p style=\"margin-left:22%;\">displays the directory entries at <i><inode_number><\/i> and enters subcommand mode<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><inode_number><\/i> is the directory\u2019s inode &#8211; given in decimal<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><file_set><\/i> currently must be zero<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS:<\/b> <br \/> m => modify entries <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>d[isplay]<\/b> <i>[<block> [<offset> [<format> [<count>]]]]<\/i><\/p>\n<p style=\"margin-left:22%;\">displays <i><count><\/i> objects located at the <i><offset><\/i> of <i><block><\/i> in <i><format><\/i><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><block><\/i> is the block number &#8211; given in decimal<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><offset><\/i> is the offset within <i><block><\/i> &#8211; given in hexadecimal<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><format><\/i> is one of the following: <br \/> a => ascii <br \/> b => block allocation map <br \/> d => decimal <br \/> i => inode <br \/> I => inode allocation map <br \/> s => superblock <br \/> x => hexadecimal <br \/> X => extent allocation descriptor<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><count><\/i> is the number of objects to display &#8211; given in decimal<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>dm[ap]<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"54%\">\n<p>displays aggregate disk (block) map<\/p>\n<\/td>\n<td width=\"23%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS<\/b> <br \/> m => modify map fields <br \/> f => display free count <br \/> t => display tree levels <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>dt[ree]<\/b> <i><inode_number> [<file_set>]<\/i><\/p>\n<p style=\"margin-left:22%;\">displays root of the directory btree located at <i><inode_number><\/i> and enters a subcommand mode to navigate the btree<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><inode_number><\/i> is the directory\u2019s inode &#8211; given in decimal<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><file_set><\/i> currently must be zero<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS<\/b> <br \/> l => visit left sibling <br \/> m => modify current node <br \/> p => visit parent node (not parent directory) <br \/> r => visit right sibling <br \/> [0-9] => visit the n\u2019th child node <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>fsckw[sphdr]<\/b><\/p>\n<p style=\"margin-left:22%;\">displays the header of the fsck workspace in the aggregate<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS:<\/b> <br \/> m => modify entries <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>h[elp]<\/b> <i>[<command>]<\/i><\/p>\n<p style=\"margin-left:22%;\">displays help for <i><command><\/i> <br \/> if no command is given, all possible commands are displayed<\/p>\n<p style=\"margin-left:11%;\"><b>ia[g]<\/b> <i>[<IAG_number>] [a | s | <file_set>]<\/i><\/p>\n<p style=\"margin-left:22%;\">displays IAG information for <i><IAG_number><\/i> and enters subcommand mode<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><IAG_number><\/i> is given in decimal<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>a<\/i> is to use the primary aggregate inode table<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>s<\/i> is to use the secondary aggregate inode table<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><file_set><\/i> currently must be zero<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS<\/b> <br \/> e => display\/modify inode extents map <br \/> m => modify IAG <br \/> p => display\/modify persistent map <br \/> w => display\/modify working map <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>i[node]<\/b> <i>[<inode_number>] [a | s | <file_set>]<\/i><\/p>\n<p style=\"margin-left:22%;\">displays inode information for <i><inode_number><\/i> and enters subcommand mode<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><inode_number><\/i> is given in decimal<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>a<\/i> is to use the primary aggregate inode table<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>s<\/i> is to use the secondary aggregate inode table<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><file_set><\/i> currently must be zero<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS<\/b> <br \/> a => display\/modify inode\u2019s ACL <br \/> m => modify inode <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>logs[uper]<\/b><\/p>\n<p style=\"margin-left:22%;\">displays the journal log superblock and enters subcommand mode<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS<\/b> <br \/> m => modify journal log superblock <br \/> x => exit subcommand mode<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>q[uit]<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"26%\">\n<p>exits jfs_debugfs<\/p>\n<\/td>\n<td width=\"51%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>se[t]<\/b> <i>[<variable> <value>]<\/i><\/p>\n<p style=\"margin-left:22%;\"><b>* not implemented yet *<\/b> <br \/> set user-defined <i><variable><\/i> to <i><value><\/i> <br \/> if no arguments are given, displays all set variables<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><variable><\/i> must begin with an alphabetic character<\/p>\n<p style=\"margin-left:11%;\"><b>su[perblock]<\/b> <i>[p | s]<\/i><\/p>\n<p style=\"margin-left:22%;\">displays superblock data<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>p<\/i> displays the primary superblock<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>s<\/i> displays the secondary superblock<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS:<\/b> <br \/> m => modify entries <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>s2p[erblock]<\/b> <i>[p | s]<\/i><\/p>\n<p style=\"margin-left:22%;\">displays alternate superblock data<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>p<\/i> displays the primary superblock<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>s<\/i> displays the secondary superblock<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS:<\/b> <br \/> m => modify entries <br \/> x => exit subcommand mode<\/p>\n<p style=\"margin-left:11%;\"><b>u[nset]<\/b> <i><variable><\/i><\/p>\n<p style=\"margin-left:22%;\"><b>* not implemented yet *<\/b> <br \/> deletes user-defined <i><variable><\/i><\/p>\n<p style=\"margin-left:11%;\"><b>xt[ree]<\/b> <i><inode_number> [<file_set>]<\/i><\/p>\n<p style=\"margin-left:22%;\">displays root of the non-directory btree located at <i><inode_number><\/i> and enters a subcommand mode to navigate the btree<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><inode_number><\/i> is the directory\u2019s inode &#8211; given in decimal<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i><file_set><\/i> currently must be zero<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>SUBCOMMANDS<\/b> <br \/> l => visit left sibling <br \/> m => modify current node <br \/> p => visit parent node (not parent directory) <br \/> r => visit right sibling <br \/> [0-9] => visit the n\u2019th child node <br \/> x => exit subcommand mode<\/p>\n<h2>REPORTING BUGS <a name=\"REPORTING BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">If you find a bug in <b>JFS<\/b> or <b>jfs_debugfs<\/b>, please report it via the bug tracking system (&#8220;Report Bugs&#8221; section) of the JFS project web site: <br \/> http:\/\/jfs.sourceforge.net\/<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Please send as much pertinent information as possible, including the complete output of running <b>jfs_fsck<\/b> with the <b>\u2212v<\/b> and <b>\u2212n<\/b> options on the JFS device.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_fsck<\/b>(8), <b>jfs_mkfs<\/b>(8), <b>jfs_fscklog<\/b>(8), <b>jfs_logdump<\/b>(8), <b>jfs_tune<\/b>(8),<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Barry Arndt (barndt@us.ibm.com) <br \/> William Braswell, Jr.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>jfs_debugfs<\/b> is maintained by IBM. <br \/> See the JFS project web site for more details: <br \/> http:\/\/jfs.sourceforge.net\/<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  jfs_debugfs \u2212 shell-type JFS file system editor <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,515,4],"class_list":["post-3387","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-jfs_debugfs","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3387"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3387\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}