[Ocfs2-tools-devel] [PATCH 05/12] debugfs.ocfs2: Dump directory block trailers.

Joel Becker Joel.Becker at oracle.com
Fri Jan 9 16:10:55 PST 2009


On Tue, Jan 06, 2009 at 06:09:18PM -0800, Sunil Mushran wrote:
> Comments inlined.
>
> Joel Becker wrote:
>> Teach debugfs.ocfs2 to notice and dump directory block trailers via the
>> new "dir_trailers" command.

<snip>

>> -	{ "decode",	do_decode_lockres }
>> +	{ "decode",	do_decode_lockres },
>> +	{ "dir_trailers",	do_dir_trailers },
>>   
>
> Not a big issue but dir_trailers is too implementation specific.
> How about "statd"? It is like "stats" for stat-ing the sb.

	I went a step further.  I changed it to 'dirblocks', and it
dumps the entire dirblocks of a directory.  Once I had that, I could add
dirblock detection to the 'logdump' command.
	While I was in there, I had to fix two bugs in debugfs.ocfs2.
All three patches follow this email.

Joel

-- 

"In the room the women come and go
 Talking of Michaelangelo."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list