libcryfs/main.cpp
2015-02-17 01:02:15 +01:00

26 lines
742 B
C++

#include <messmer/blockstore/implementations/ondisk/OnDiskBlockStore.h>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include "messmer/fspp/fuse/Fuse.h"
#include "messmer/fspp/impl/FilesystemImpl.h"
#include "CryDevice.h"
namespace bf = boost::filesystem;
using blockstore::ondisk::OnDiskBlockStore;
using std::make_unique;
int main (int argc, char *argv[])
{
auto blockStore = make_unique<OnDiskBlockStore>(bf::path("/home/heinzi/cryfstest/root"));
auto config = make_unique<cryfs::CryConfig>(bf::path("/home/heinzi/cryfstest/config.json"));
cryfs::CryDevice device(std::move(config), std::move(blockStore));
fspp::FilesystemImpl fsimpl(&device);
fspp::fuse::Fuse fuse(&fsimpl);
fuse.run(argc, argv);
return 0;
}