1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-07 21:18:59 +03:00

Add a global get_cmd_name()

Which returns the string set by set_cmd_name().
This commit is contained in:
David Teigland 2015-06-16 15:13:10 -05:00
parent e043e03cd8
commit da1f887060
2 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,11 @@ void set_cmd_name(const char *cmd)
_cmd_name[sizeof(_cmd_name) - 1] = '\0';
}
const char *get_cmd_name(void)
{
return _cmd_name;
}
void set_sysfs_dir_path(const char *path)
{
strncpy(_sysfs_dir_path, path, sizeof(_sysfs_dir_path) - 1);

View File

@ -51,6 +51,7 @@ void init_detect_internal_vg_cache_corruption(int detect);
void init_retry_deactivation(int retry);
void set_cmd_name(const char *cmd_name);
const char *get_cmd_name(void);
void set_sysfs_dir_path(const char *path);
int test_mode(void);