diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2012-02-15 12:23:15 +0000 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2012-02-15 12:23:15 +0000 |
commit | 05bfdefdf8356c1fb0eeae178685ddb8320f548b (patch) | |
tree | 5619f1da9e9bbb946946d7e284e31d39a0708ddf /libdm/libdm-common.h | |
parent | 3eb23ab3d26925ec84308afa23080a77ef3333f7 (diff) | |
download | lvm2-05bfdefdf8356c1fb0eeae178685ddb8320f548b.tar.gz lvm2-05bfdefdf8356c1fb0eeae178685ddb8320f548b.tar.xz lvm2-05bfdefdf8356c1fb0eeae178685ddb8320f548b.zip |
Add DM_DEFAULT_NAME_MANGLING_MODE env. variable to override configured value.
Just in case of emergency when name mangling code causes any problems so
we can override the default value and switch off the mangling globally.
Diffstat (limited to 'libdm/libdm-common.h')
-rw-r--r-- | libdm/libdm-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdm/libdm-common.h b/libdm/libdm-common.h index 77d0b1f4..ce9b434f 100644 --- a/libdm/libdm-common.h +++ b/libdm/libdm-common.h @@ -18,6 +18,8 @@ #include "libdevmapper.h" +#define DM_DEFAULT_NAME_MANGLING_MODE_ENV_VAR_NAME "DM_DEFAULT_NAME_MANGLING_MODE" + #define DEV_NAME(dmt) (dmt->mangled_dev_name ? : dmt->dev_name) int mangle_name(const char *str, size_t len, char *buf, |