From cb2a5acc3d357e896023ee5814d2f7b30eef6909 Mon Sep 17 00:00:00 2001 From: Alexandre Ioffe Date: Thu, 26 Jan 2023 14:11:04 -0800 Subject: [PATCH] EX-6791 lipe: lamigo, lpurge are not for customer use Lamigo and lpurge helps notice that they are not intended for direct customer use Signed-off-by: Alexandre Ioffe Test-Parameters: trivial Change-Id: I36ba2da080156da2d62ffa215cd7eb98b5c10adc Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49794 Reviewed-by: Colin Faber Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- lipe/src/lamigo.c | 5 +++-- lipe/src/lpurge.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lipe/src/lamigo.c b/lipe/src/lamigo.c index 6c2eae6..95dce07 100644 --- a/lipe/src/lamigo.c +++ b/lipe/src/lamigo.c @@ -108,7 +108,8 @@ static __u64 lamigo_rule_attrs; /* attributes needed to evalute the rules */ static void usage(void) { /* FIXME Deprecate all short options other than '-h'. */ - printf("\nUsage: %s [options]\n" + printf("\n*** %s is not intended to be used directly\n" + "\nUsage: %s [options]\n" "options:\n" "\t-a, --min-age, seconds before record handled (default: %u)\n" "\t-b, --debug, enable debugging output\n" @@ -152,7 +153,7 @@ static void usage(void) "\t--ssh-log-verbosity=V, set SSH_OPTIONS_LOG_VERBOSITY to V (default: 0)\n" "\t--timestamps, add timestamp to log messages (default: no)\n" "\t--version, print version information and exit\n", - program_invocation_short_name, + program_invocation_short_name, program_invocation_short_name, DEF_MIN_AGE, DEF_CACHE_SIZE >> 20, DEF_MIRROR_CMD, diff --git a/lipe/src/lpurge.c b/lipe/src/lpurge.c index 10b8b35..2a4e823 100644 --- a/lipe/src/lpurge.c +++ b/lipe/src/lpurge.c @@ -252,7 +252,8 @@ static void lpurge_reset_result(void) static void usage(void) { - printf("Usage: %s [options]\n" + printf("\n*** %s is not intended to be used directly\n" + "\nUsage: %s [options]\n" "\t-b, --debug, enable debugging output\n" "\t-D, --device, OST device\n" /* -h, --freehi, high watermark, %% of space (default: %u) */ @@ -273,7 +274,7 @@ static void usage(void) "\t-w, --dump, stats file (via USR1 signal, default: %s)\n" "\t--dump_fids, JSON stats file (via USR2 signal, default: %s)\n" "\t--version, print version information and exit\n", - program_invocation_short_name, + program_invocation_short_name, program_invocation_short_name, DEF_INTERVAL, DEF_MAX_JOBS, DEF_MIN_USED, -- 1.8.3.1