diff options
author | Andres Salomon <dilinger@voxel.net> | 2002-10-27 21:04:03 +0000 |
---|---|---|
committer | Andres Salomon <dilinger@voxel.net> | 2002-10-27 21:04:03 +0000 |
commit | 50762c218613b8fed3b854038cb4ef8388d114fe (patch) | |
tree | 80f0fb1ac6145aee658d4a00e43f447fa077c7d6 /tools/vgdisplay.c | |
parent | 4efe1861c3049e5daa8f719165f1855f5e8128bc (diff) | |
download | lvm2-50762c218613b8fed3b854038cb4ef8388d114fe.tar.gz |
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.
Diffstat (limited to 'tools/vgdisplay.c')
-rw-r--r-- | tools/vgdisplay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/vgdisplay.c b/tools/vgdisplay.c index dddd89ba3..13f301120 100644 --- a/tools/vgdisplay.c +++ b/tools/vgdisplay.c @@ -34,6 +34,9 @@ int vgdisplay(struct cmd_context *cmd, int argc, char **argv) return EINVALID_CMD_LINE; } + if (!driver_is_loaded()) + return ECMD_FAILED; + /* FIXME -D disk_ARG is now redundant */ /********* FIXME: Do without this - or else 2(+) passes! |