Commit c4c77d26 authored by David Auer's avatar David Auer
Browse files

Prevent creation of empty pid directory

parent 19e785b1
Loading
Loading
Loading
Loading
+8 −6
Original line number Original line Diff line number Diff line
@@ -414,6 +414,14 @@ parse_input(const po::variables_map& vm) {
    }
    }
    GKFS_DATA->hosts_file(hosts_file);
    GKFS_DATA->hosts_file(hosts_file);



    if(gkfs::config::dynamic_placement && vm.count("start-relocation")) {
        cout << "Starting relocation...\n";
        gkfs::relocation::test_d2d_rpc();
        // Don't create any directories and no interest in the other options
        exit(0);
    }

    assert(vm.count("mountdir"));
    assert(vm.count("mountdir"));
    auto mountdir = vm["mountdir"].as<string>();
    auto mountdir = vm["mountdir"].as<string>();
    // Create mountdir. We use this dir to get some information on the
    // Create mountdir. We use this dir to get some information on the
@@ -549,12 +557,6 @@ main(int argc, const char* argv[]) {
        exit(EXIT_FAILURE);
        exit(EXIT_FAILURE);
    }
    }


    if(gkfs::config::dynamic_placement && vm.count("start-relocation")) {
        cout << "Starting relocation...\n";
        gkfs::relocation::test_d2d_rpc();
        return 0;
    }

    /*
    /*
     * Initialize environment and start daemon. Wait until signaled to cancel
     * Initialize environment and start daemon. Wait until signaled to cancel
     * before shutting down
     * before shutting down