[Ocfs2-tools-devel] [PATCH 0/5] O2info: Adding all the rest of running codes to o2info.

Sunil Mushran sunil.mushran at oracle.com
Fri Jun 3 14:21:59 PDT 2011


On 06/03/2011 12:10 AM, Tristan Ye wrote:
> This patch series keeps tools the same pace with o2info kernel part, and tries
> to make the o2info a complete utility according to original design doc for the
> first time, with following codes being added:
>
> 	* --freeinode
>    	* --freefrag
> 	* --space-usage
> 	* --filestat
>
> It has been in following remote branch:
>
> git://oss.oracle.com/git/tye/ocfs2-tools.git o2info
>
> I believe most of following patches have already got SOB, and it's a good time
> to push them upstream into ocfs2-tools.git central repo since kernel part has
> been in mainline for a while.

Thanks Tristan.

I think the tool's user-interface is becoming a bit too kludgy.

My suggestion would be to use the git-style (also used in o2cb tool).

Here the command will control the type of info and the command options
will control the output style.

e.g.,
# o2info volinfo [--mkfs] DEVICE_OR_FILE

# o2info fileinfo [--stat] [--frag] [-d DEVICE] FILE

Something like that. This needs a bit more thought. I think it will be a
lot more cleaner and more extendible.

Currently I don't think anyone is shipping o2info. We should be able to
clean out the interface without bothering about backward compat.

If this finds favor, maybe we could add a mock up of the commands
and the outputs to the wiki.

Thanks
Sunil



More information about the Ocfs2-tools-devel mailing list