diff options
author | Alasdair G Kergon <agk@redhat.com> | 2017-03-16 01:36:02 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2017-03-16 01:36:02 +0000 |
commit | 1cdaa8144ddc2d171700d2c80f18cb745828f7ed (patch) | |
tree | 7bd6a34f386017c4f33222fa6b301e30e6cda4e2 /tools/stub.h | |
parent | 4f8651984531371f73c7bed0271c7dde8afb6c19 (diff) | |
download | lvm2-1cdaa8144ddc2d171700d2c80f18cb745828f7ed.tar.gz |
lvmsar/lvmsadc: Mention dmstats when run.
Diffstat (limited to 'tools/stub.h')
-rw-r--r-- | tools/stub.h | 13 |
1 files 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)), |