From 50762c218613b8fed3b854038cb4ef8388d114fe Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Sun, 27 Oct 2002 21:04:03 +0000 Subject: agk, I recall you saying you had a massive commit pending; if you need me to back this out so you can do that commit, let me know. Also, if there's an issue with the error message that's displayed, just change it in tools.h. This causes a "device-mapper driver/module not loaded?" error message to be displayed for the commands that require dm-mod, if the tools can't get the driver version. It's not done for commands that don't require dm-mod. This should clear up some problems people have had attempting to use lvm2 without rtfm'ing. --- tools/lvdisplay.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/lvdisplay.c') diff --git a/tools/lvdisplay.c b/tools/lvdisplay.c index 9fb157aa..d421327c 100644 --- a/tools/lvdisplay.c +++ b/tools/lvdisplay.c @@ -42,5 +42,8 @@ int lvdisplay(struct cmd_context *cmd, int argc, char **argv) return EINVALID_CMD_LINE; } + if (!driver_is_loaded()) + return ECMD_FAILED; + return process_each_lv(cmd, argc, argv, LCK_VG_READ, &lvdisplay_single); } -- cgit