1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

More informative startup mesg if can't create /etc/lvm.

This commit is contained in:
Alasdair Kergon 2005-01-27 15:50:34 +00:00
parent 7851b13bc4
commit 51c2a81360
2 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.01.03 - Version 2.01.03 -
=================================== ===================================
More informative startup mesg if can't create /etc/lvm.
Fix snapshot device size bug (since 2.01.01). Fix snapshot device size bug (since 2.01.01).
clvmd announces startup and cluster connection in syslog. clvmd announces startup and cluster connection in syslog.
Gulm clvmd doesn't hang trying to talk to a rebooted node. Gulm clvmd doesn't hang trying to talk to a rebooted node.

View File

@ -181,6 +181,12 @@ static int _process_config(struct cmd_context *cmd)
return 0; return 0;
} }
if (*cmd->proc_dir && !dir_exists(cmd->proc_dir)) {
log_error("Warning: proc dir %s not found - some checks will be bypassed",
cmd->proc_dir);
cmd->proc_dir[0] = '\0';
}
/* activation? */ /* activation? */
cmd->default_settings.activation = find_config_int(cmd->cft->root, cmd->default_settings.activation = find_config_int(cmd->cft->root,
"global/activation", "global/activation",
@ -825,8 +831,13 @@ struct cmd_context *create_toolcontext(struct arg *the_args)
goto error; goto error;
/* Create system directory if it doesn't already exist */ /* Create system directory if it doesn't already exist */
if (*cmd->sys_dir && !create_dir(cmd->sys_dir)) if (*cmd->sys_dir && !create_dir(cmd->sys_dir)) {
log_error("Failed to create LVM2 system dir for metadata backups, config "
"files and internal cache.");
log_error("Set environment variable LVM_SYSTEM_DIR to alternative location "
"or empty string.");
goto error; goto error;
}
if (!(cmd->libmem = pool_create("library", 4 * 1024))) { if (!(cmd->libmem = pool_create("library", 4 * 1024))) {
log_error("Library memory pool creation failed"); log_error("Library memory pool creation failed");