diff --git a/src/cryfs/cli/Cli.cpp b/src/cryfs/cli/Cli.cpp index 2babefef..1944c259 100644 --- a/src/cryfs/cli/Cli.cpp +++ b/src/cryfs/cli/Cli.cpp @@ -209,8 +209,11 @@ namespace cryfs { device.onFsAction(std::bind(&CallAfterTimeout::resetTimer, idleUnmounter->get())); } +#ifdef __APPLE__ + std::cout << "\nMounting filesystem. To unmount, call:\n$ umount " << options.mountDir() << "\n" << std::endl; +#else std::cout << "\nMounting filesystem. To unmount, call:\n$ fusermount -u " << options.mountDir() << "\n" << std::endl; - +#endif vector fuseOptions = options.fuseOptions(); fuse.run(fuseOptions.size(), fuseOptions.data()); } catch (const std::exception &e) { diff --git a/src/cryfs/filesystem/CryDevice.cpp b/src/cryfs/filesystem/CryDevice.cpp index b5d5b653..a78cf916 100644 --- a/src/cryfs/filesystem/CryDevice.cpp +++ b/src/cryfs/filesystem/CryDevice.cpp @@ -137,7 +137,7 @@ unique_ref CryDevice::LoadBlob(const bf::path &path) { void CryDevice::statfs(const bf::path &path, struct statvfs *fsstat) { callFsActionCallbacks(); - throw FuseErrnoException(ENOTSUP); + // TODO What should we report here? } unique_ref CryDevice::CreateFileBlob() { diff --git a/test/cryfs/config/CryConfigFileTest.cpp b/test/cryfs/config/CryConfigFileTest.cpp index dfc53e99..66891053 100644 --- a/test/cryfs/config/CryConfigFileTest.cpp +++ b/test/cryfs/config/CryConfigFileTest.cpp @@ -2,7 +2,6 @@ #include #include -#include using namespace cryfs; using cpputils::TempFile; @@ -17,10 +16,11 @@ namespace bf = boost::filesystem; namespace boost { inline std::ostream &operator<<(std::ostream &out, const CryConfigFile &file) { UNUSED(file); - out << "ConfigFile"; + out << "ConfigFile()"; return out; } } +#include class CryConfigFileTest: public ::testing::Test { public: diff --git a/test/cryfs/config/CryConfigLoaderTest.cpp b/test/cryfs/config/CryConfigLoaderTest.cpp index dffa00aa..f3be4bda 100644 --- a/test/cryfs/config/CryConfigLoaderTest.cpp +++ b/test/cryfs/config/CryConfigLoaderTest.cpp @@ -4,7 +4,6 @@ #include #include #include -#include using cpputils::unique_ref; using cpputils::make_unique_ref; @@ -25,6 +24,7 @@ namespace boost { return stream << "CryConfigFile()"; } } +#include //TODO Test loading with same/different --cipher argument diff --git a/test/cryfs/config/crypto/CryConfigEncryptorFactoryTest.cpp b/test/cryfs/config/crypto/CryConfigEncryptorFactoryTest.cpp index 12558d7a..ee14fb09 100644 --- a/test/cryfs/config/crypto/CryConfigEncryptorFactoryTest.cpp +++ b/test/cryfs/config/crypto/CryConfigEncryptorFactoryTest.cpp @@ -2,7 +2,6 @@ #include #include #include -#include using cpputils::SCrypt; using cpputils::AES256_GCM; @@ -18,7 +17,7 @@ namespace boost { return stream << "CryConfigEncryptor::Decrypted()"; } } - +#include class CryConfigEncryptorFactoryTest: public ::testing::Test { public: diff --git a/test/cryfs/config/crypto/CryConfigEncryptorTest.cpp b/test/cryfs/config/crypto/CryConfigEncryptorTest.cpp index f857c663..1d4f46df 100644 --- a/test/cryfs/config/crypto/CryConfigEncryptorTest.cpp +++ b/test/cryfs/config/crypto/CryConfigEncryptorTest.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include using std::ostream; @@ -24,6 +23,7 @@ namespace boost { return stream << "CryConfigEncryptor::Decrypted()"; } } +#include class CryConfigEncryptorTest: public ::testing::Test { public: diff --git a/test/cryfs/config/crypto/inner/ConcreteInnerEncryptorTest.cpp b/test/cryfs/config/crypto/inner/ConcreteInnerEncryptorTest.cpp index 43688099..c463a027 100644 --- a/test/cryfs/config/crypto/inner/ConcreteInnerEncryptorTest.cpp +++ b/test/cryfs/config/crypto/inner/ConcreteInnerEncryptorTest.cpp @@ -2,7 +2,6 @@ #include #include #include -#include using std::ostream; using boost::none; @@ -21,6 +20,7 @@ namespace boost { return stream << "cpputils::Data()"; } } +#include class ConcreteInnerEncryptorTest : public ::testing::Test { public: diff --git a/test/cryfs/config/crypto/inner/InnerConfigTest.cpp b/test/cryfs/config/crypto/inner/InnerConfigTest.cpp index e780a642..4390051f 100644 --- a/test/cryfs/config/crypto/inner/InnerConfigTest.cpp +++ b/test/cryfs/config/crypto/inner/InnerConfigTest.cpp @@ -1,6 +1,5 @@ #include #include -#include #include using cpputils::Data; @@ -15,6 +14,7 @@ namespace boost { return stream << "InnerConfig(" << config.cipherName << ", [data])"; } } +#include TEST(InnerConfigTest, SomeValues) { Data serialized = InnerConfig{"myciphername", DataFixture::generate(1024)}.serialize(); diff --git a/test/cryfs/config/crypto/outer/OuterConfigTest.cpp b/test/cryfs/config/crypto/outer/OuterConfigTest.cpp index fd6b658f..5a4627b4 100644 --- a/test/cryfs/config/crypto/outer/OuterConfigTest.cpp +++ b/test/cryfs/config/crypto/outer/OuterConfigTest.cpp @@ -1,6 +1,5 @@ #include #include -#include #include using cpputils::Data; @@ -16,6 +15,7 @@ namespace boost { return stream << "OuterConfig()"; } } +#include class OuterConfigTest: public ::testing::Test { public: diff --git a/test/cryfs/config/crypto/outer/OuterEncryptorTest.cpp b/test/cryfs/config/crypto/outer/OuterEncryptorTest.cpp index d01af67e..9f1a644d 100644 --- a/test/cryfs/config/crypto/outer/OuterEncryptorTest.cpp +++ b/test/cryfs/config/crypto/outer/OuterEncryptorTest.cpp @@ -2,7 +2,6 @@ #include #include #include -#include using std::ostream; using boost::none; @@ -19,6 +18,7 @@ namespace boost { return stream << "cpputils::Data()"; } } +#include class OuterEncryptorTest : public ::testing::Test { public: