summaryrefslogtreecommitdiff
path: root/lib/commands
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2012-01-10 02:03:31 +0000
committerAlasdair Kergon <agk@redhat.com>2012-01-10 02:03:31 +0000
commit2e5ff5d11c362468060df519598f6790f0491ffd (patch)
treec828be890d0d1aac643610f6407e64bb98186f92 /lib/commands
parent7afa7b079c395514fba93677938e950ebc5566e8 (diff)
downloadlvm2-2e5ff5d11c362468060df519598f6790f0491ffd.tar.gz
Add dm_uuid_prefix/dm_set_uuid_prefix for non-lvm users to override hard-coded
LVM- prefix. Try harder not to leave stray empty devices around (locally or remotely) when reverting changes after failures while there are inactive tables.
Diffstat (limited to 'lib/commands')
-rw-r--r--lib/commands/toolcontext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index 274345e22..0c0a71acf 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -246,6 +246,9 @@ static int _process_config(struct cmd_context *cmd)
}
#ifdef DEVMAPPER_SUPPORT
dm_set_dev_dir(cmd->dev_dir);
+
+ if (!dm_set_uuid_prefix("LVM-"))
+ return_0;
#endif
/* proc dir */