|
@ -2,6 +2,10 @@ |
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Branch2::Branch2() |
|
|
Branch2::Branch2() |
|
|
: mode(Mode::RW) |
|
|
: mode(Mode::RW) |
|
@ -18,4 +22,7 @@ Branch2::Branch2(toml::value const &v_) |
|
|
mode = Mode::_from_string(toml::find<std::string>(v_,"mode").c_str()); |
|
|
mode = Mode::_from_string(toml::find<std::string>(v_,"mode").c_str()); |
|
|
min_free_space = 0; |
|
|
min_free_space = 0; |
|
|
path = toml::find<std::string>(v_,"path"); |
|
|
path = toml::find<std::string>(v_,"path"); |
|
|
|
|
|
|
|
|
|
|
|
int const flags = O_DIRECTORY | O_PATH; |
|
|
|
|
|
fd = openat(AT_FDCWD,path.string().c_str(),O_DI |
|
|
} |
|
|
} |