From 1cdaa8144ddc2d171700d2c80f18cb745828f7ed Mon Sep 17 00:00:00 2001 From: Alasdair G Kergon Date: Thu, 16 Mar 2017 01:36:02 +0000 Subject: [PATCH] lvmsar/lvmsadc: Mention dmstats when run. --- tools/stub.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/stub.h b/tools/stub.h index f94106705..a98346a64 100644 --- a/tools/stub.h +++ b/tools/stub.h @@ -13,22 +13,29 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +/* #define unimplemented \ log_error("Command not implemented yet."); return ECMD_FAILED -/*int e2fsadm(struct cmd_context *cmd, int argc, char **argv) unimplemented*/ +int e2fsadm(struct cmd_context *cmd, int argc, char **argv) unimplemented +*/ + int lvmsadc(struct cmd_context *cmd __attribute__((unused)), int argc __attribute__((unused)), char **argv __attribute__((unused))) { - unimplemented; + log_error("There's no 'lvmsadc' command in LVM2."); + log_error("Please use the superior 'dmstats' facilities instead."); + return ECMD_FAILED; } int lvmsar(struct cmd_context *cmd __attribute__((unused)), int argc __attribute__((unused)), char **argv __attribute__((unused))) { - unimplemented; + log_error("There's no 'lvmsar' command in LVM2."); + log_error("Please use the superior 'dmstats' facilities instead."); + return ECMD_FAILED; } int pvdata(struct cmd_context *cmd __attribute__((unused)), -- 2.43.5