[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 16:42:52 PDT 2011


On 06/03/2011 04:33 PM, Joel Becker wrote:
> On Fri, Jun 03, 2011 at 04:23:31PM -0700, Sunil Mushran wrote:
>> e.g.,
>> This is lot more efficient...
>> numslots=$(o2info volinfo -N [-d DEVICE] FILE)
>> than...
>> numslots=$(o2info --volinfo DEVICE | awk '/Node Slots:/ { print $3; }')
> 	Are you proposing that each command have an arbitrary number of
> switches (-N, -L, etc)?

Yes.

# o2cb volinfo --mkfs [-d DEVICE] [FILE]
will print the output in mkfs format.

# o2cb volinfo [-d DEVICE] [FILE]
will print default format

#o2cb volinfo --fs-features [-d DEVICE] [FILE]
only features...

etc.



More information about the Ocfs2-tools-devel mailing list