}
DSS_EMERG_LOG("loglevel: %d\n", conf.loglevel_arg);
// cmdline_parser_dump(logfile? logfile : stdout, &conf);
- ret = dss_chdir(conf.dest_dir_arg);
out:
free(config_file);
if (ret >= 0)
exit(EXIT_FAILURE);
}
+static void change_to_dest_dir(void)
+{
+ int ret;
+
+ DSS_INFO_LOG("changing cwd to %s\n", conf.dest_dir_arg);
+ ret = dss_chdir(conf.dest_dir_arg);
+ if (ret >= 0)
+ return;
+ DSS_EMERG_LOG("%s\n", dss_strerror(-ret));
+ exit(EXIT_FAILURE);
+}
+
static void handle_sighup(void)
{
DSS_NOTICE_LOG("SIGHUP\n");
parse_config_file(1);
+ change_to_dest_dir();
}
static void handle_signal(void)
if (conf.daemon_given)
daemon_init();
+ change_to_dest_dir();
setup_signal_handling();
ret = call_command_handler();
if (ret < 0)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Minimal percent of free inodes"
int typestr="percent"
-default="2"
+default="0"
optional
details="
Specify the minimum amount of free inodes on the file system
are free, snatshot removal kicks in just as in case of low
disk space.
- A value of zero deactivates this check.
+ Note that not every file system supports the concept of inodes.
+ Moreover it is not possible to reliably detect whether this is
+ the case. Therefore this feature is disabled by default. It's
+ safe to enable it for ext3 file systems on linux though.
+
+ A value of zero (the default) deactivates this check.
"