master - lvmsar/lvmsadc: Mention dmstats when run.
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1cdaa8144ddc2d171700d2c80f18cb745828f7ed Commit: 1cdaa8144ddc2d171700d2c80f18cb745828f7ed Parent: 4f8651984531371f73c7bed0271c7dde8afb6c19 Author: Alasdair G Kergon <[email protected]> AuthorDate: Thu Mar 16 01:36:02 2017 +0000 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Thu Mar 16 01:36:02 2017 +0000
lvmsar/lvmsadc: Mention dmstats when run.
--- tools/stub.h | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-)
tools/stub.h +10 -3
@@ -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)),