~aleteoryx/muditaos

3a0f402fde25eb4073a9ddd6936e15dd3a1828ca — Lucjan Bryndza 5 years ago ad4fba1
[EGD-5149] Fix temporary path

Currently temporary path is in the fat partition. This patch
changes the temporary directory to the LFS partition.
1 files changed, 1 insertions(+), 11 deletions(-)

M module-vfs/src/purefs/filesystem_paths.cpp
M module-vfs/src/purefs/filesystem_paths.cpp => module-vfs/src/purefs/filesystem_paths.cpp +1 -11
@@ 3,16 3,6 @@

#include <purefs/filesystem_paths.hpp>

// FIXME: Remove it when deprecated API will be removed
#undef PATH_SYS
#undef PATH_USER
#undef PATH_CURRENT
#undef PATH_PREVIOUS
#undef PATH_UPDATES
#undef PATH_TMP
#undef PATH_BACKUP
#undef PATH_FACTORY

namespace
{
    constexpr inline auto PATH_SYS      = "/sys";


@@ 61,7 51,7 @@ namespace purefs

        std::filesystem::path getTemporaryPath() noexcept
        {
            return std::filesystem::path{eMMC_disk} / PATH_TMP;
            return std::filesystem::path{eMMC_disk} / PATH_USER / PATH_TMP;
        }

        std::filesystem::path getBackupOSPath() noexcept