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/lvdisplay.c | |
parent | 4efe1861c3049e5daa8f719165f1855f5e8128bc (diff) | |
download | lvm2-50762c218613b8fed3b854038cb4ef8388d114fe.tar.gz lvm2-50762c218613b8fed3b854038cb4ef8388d114fe.tar.xz lvm2-50762c218613b8fed3b854038cb4ef8388d114fe.zip |
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/lvdisplay.c')
-rw-r--r-- | tools/lvdisplay.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |