FUSEX: use the filesystem name as the default cache entry name - fixes EOS-2879

parent 5e8a2441
......@@ -298,7 +298,7 @@ EosFuse::run(int argc, char* argv[], void* userdata)
// apply some default settings for undefined entries.
{
if (!root.isMember("name")) {
root["name"] = "";
root["name"] = fsname;
}
if (!root.isMember("hostport")) {
......@@ -992,6 +992,8 @@ EosFuse::run(int argc, char* argv[], void* userdata)
if (fuse_daemonize(config.options.foreground) != -1) {
#ifndef __APPLE__
/* disabled for the time being, since not used
eos::common::ShellCmd cmd("echo eos::common::ShellCmd init 2>&1");
eos::common::cmd_status st = cmd.wait(5);
int rc = st.exit_code;
......@@ -1002,6 +1004,8 @@ EosFuse::run(int argc, char* argv[], void* userdata)
exit(-1);
}
*/
if (!geteuid()) {
// change the priority of this process to maximum
if (setpriority(PRIO_PROCESS, getpid(), -PRIO_MAX / 2) < 0) {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment