summaryrefslogtreecommitdiffstats
path: root/tools/vgcfgrestore.c
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@voxel.net>2002-10-27 21:04:03 +0000
committerAndres Salomon <dilinger@voxel.net>2002-10-27 21:04:03 +0000
commit50762c218613b8fed3b854038cb4ef8388d114fe (patch)
tree80f0fb1ac6145aee658d4a00e43f447fa077c7d6 /tools/vgcfgrestore.c
parent4efe1861c3049e5daa8f719165f1855f5e8128bc (diff)
downloadlvm2-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/vgcfgrestore.c')
-rw-r--r--tools/vgcfgrestore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/vgcfgrestore.c b/tools/vgcfgrestore.c
index 8e0050a9..fe497816 100644
--- a/tools/vgcfgrestore.c
+++ b/tools/vgcfgrestore.c
@@ -13,6 +13,9 @@ int vgcfgrestore(struct cmd_context *cmd, int argc, char **argv)
return ECMD_FAILED;
}
+ if (!driver_is_loaded())
+ return ECMD_FAILED;
+
/*
* FIXME: overloading the -l arg for now to display a
* list of archive files for a particular vg