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:
parent
e043e03cd8
commit
da1f887060
lib/misc
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user