|
|
@ -91,14 +91,9 @@ |
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace l |
|
|
|
{ |
|
|
|
static |
|
|
|
void |
|
|
|
get_fuse_operations(struct fuse_operations &ops_, |
|
|
|
const bool nullrw_) |
|
|
|
{ |
|
|
|
namespace l { |
|
|
|
static void get_fuse_operations(struct fuse_operations &ops_, |
|
|
|
const bool nullrw_) { |
|
|
|
ops_.access = FUSE::access; |
|
|
|
ops_.bmap = FUSE::bmap; |
|
|
|
ops_.chmod = FUSE::chmod; |
|
|
@ -128,7 +123,8 @@ namespace l |
|
|
|
ops_.mknod = FUSE::mknod; |
|
|
|
ops_.open = FUSE::open; |
|
|
|
ops_.opendir = FUSE::opendir; |
|
|
|
ops_.poll = FUSE::poll;; |
|
|
|
ops_.poll = FUSE::poll; |
|
|
|
; |
|
|
|
ops_.prepare_hide = FUSE::prepare_hide; |
|
|
|
ops_.read = (nullrw_ ? FUSE::read_null : FUSE::read); |
|
|
|
ops_.readdir = FUSE::readdir; |
|
|
@ -296,13 +292,13 @@ namespace l |
|
|
|
|
|
|
|
return rv; |
|
|
|
} |
|
|
|
} |
|
|
|
} // namespace l
|
|
|
|
|
|
|
|
int |
|
|
|
main(int argc_, |
|
|
|
char **argv_) |
|
|
|
{ |
|
|
|
auto data = toml::parse<toml::preserve_comments>("config.toml"); |
|
|
|
auto data = toml::parse<preserve_comments>("config.toml"); |
|
|
|
|
|
|
|
std::cout << data["branches"] << '\n'; |
|
|
|
// Branches2 b(data["branches"]);
|
|
|
|