[Ocfs2-tools-devel] [PATCH 1/1] odump.py: remove LVB print option from command help string
Sunil Mushran
sunil.mushran at oracle.com
Thu Sep 10 16:58:26 PDT 2009
Patch is now in the repository.
Jeff Liu wrote:
> remove LVB option from command help info, and also clean up a few obsolte lines related to LVB.
>
> Signed-off-by: Jeff Liu <jeff.liu at oracle.com>
> ---
> ADDONS/odump.py | 7 +++----
> 1 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/ADDONS/odump.py b/ADDONS/odump.py
> index ebc46d4..b9ca737 100755
> --- a/ADDONS/odump.py
> +++ b/ADDONS/odump.py
> @@ -205,7 +205,6 @@ def MasterRequeryMsg(odict, fmtstr=NODEIDX_FMT + NAME_FMT):
>
> COOKIE_FMT = 'C=%s '
> REQTYPE_FMT = 'T=%s '
> -LVB_FMT = '%s '
> def ConvertLockMsg(odict, fmtstr=COOKIE_FMT + FLAGS_FMT + \
> NODEIDX_FMT + REQTYPE_FMT + NAME_FMT):
> ''' returns cookie; flags; node_idx; requested_type; name; '''
> @@ -385,7 +384,7 @@ LOCKNAME_FMT='LL=%s '
> def MigrateLockresMsg(odict, fmtstr=MASTER_FMT + LOCKNUM_FMT + \
> FLAGS_FMT + TOTAL_LOCKS + MIG_COOKIE + LOCKNAME_FMT):
> ''' master; num_locks; flags; total_locks; mig_cookie;
> - lockname; lvb(DLM_LVB_LEN); struct dlm_migratble_lock '''
> + lockname; struct dlm_migratble_lock '''
>
> if not odict:
> return ''
> @@ -564,8 +563,8 @@ def FSResponseMsg(odict, fmtstr=' '):
> def option_parse():
> ''' options parser '''
>
> - usage_str = 'Usage: %prog [-f <tcpdump capture file>] [-o <outfile>] [-t <type>] [-Lv] \n' \
> - ' or: cat ocfs2_log_file | %prog [-t <type>] [-Lv] >> file \n' \
> + usage_str = 'Usage: %prog [-f <tcpdump capture file>] [-o <outfile>] [-t <type>] [-v] \n' \
> + ' or: cat ocfs2_log_file | %prog [-t <type>] [-v] >> file \n' \
> 'Parse standard input to FILE, and also to standard output. \n' \
> 'message type present, only the specified kind of o2net message will be parsing.\n\n' \
> 'Type: \n ' \
>
More information about the Ocfs2-tools-devel
mailing list