mirror of
git://sourceware.org/git/lvm2.git
synced 2025-07-30 23:41:55 +03:00
o Basic support for exporting (but importing not completed yet).
o When volume group does not have write flag set, prevent changes to it. o Preparation for partial activation (not completed yet).
This commit is contained in:
@ -12,6 +12,7 @@ static FILE *_log = 0;
|
||||
|
||||
static int _verbose_level = 0;
|
||||
static int _test = 0;
|
||||
static int _partial = 0;
|
||||
static int _debug_level = 0;
|
||||
static int _syslog = 0;
|
||||
static int _indent = 1;
|
||||
@ -48,6 +49,14 @@ void init_test(int level) {
|
||||
log_print("Test mode. Metadata will NOT be updated.");
|
||||
}
|
||||
|
||||
void init_partial(int level) {
|
||||
_partial = level;
|
||||
if (_partial)
|
||||
log_print("Partial mode. Incomplete volume groups will "
|
||||
"be activated read-only.");
|
||||
|
||||
}
|
||||
|
||||
void init_cmd_name(int status) {
|
||||
_log_cmd_name = status;
|
||||
}
|
||||
@ -72,6 +81,10 @@ int test_mode() {
|
||||
return _test;
|
||||
}
|
||||
|
||||
int partial_mode() {
|
||||
return _partial;
|
||||
}
|
||||
|
||||
void init_debug(int level) {
|
||||
_debug_level = level;
|
||||
}
|
||||
|
@ -48,6 +48,7 @@ void fin_syslog(void);
|
||||
|
||||
void init_verbose(int level);
|
||||
void init_test(int level);
|
||||
void init_partial(int level);
|
||||
void init_debug(int level);
|
||||
void init_cmd_name(int status);
|
||||
void init_msg_prefix(const char *prefix);
|
||||
@ -56,6 +57,7 @@ void init_indent(int indent);
|
||||
void set_cmd_name(const char *cmd_name);
|
||||
|
||||
int test_mode(void);
|
||||
int partial_mode(void);
|
||||
int debug_level(void);
|
||||
|
||||
void print_log(int level, const char *file, int line, const char *format, ...)
|
||||
|
Reference in New Issue
Block a user