From: Karol Lewandowski Date: Thu, 24 Apr 2025 12:12:22 +0000 (+0200) Subject: fs-from-to-swap X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b54e9c9380f94e16f3c6aa00187975d8df5ca13;p=platform%2Fcore%2Fsystem%2Fsessiond.git fs-from-to-swap Change-Id: If5dae7fc440ad1a50bb77ac66edde5ae6381de67 --- diff --git a/src/service/src/dir_backend_fixed_size.cpp b/src/service/src/dir_backend_fixed_size.cpp index fab8cde..a717420 100644 --- a/src/service/src/dir_backend_fixed_size.cpp +++ b/src/service/src/dir_backend_fixed_size.cpp @@ -51,8 +51,9 @@ fs::path DirBackendAddFixedSize::AddSubsessionPrepareFromTemplate (const fs::pat auto tmp_subsession_path = subsession_path; tmp_subsession_path.replace_filename(TMP_NEW_PREFIX + subsession_path.filename().native()); - fs::copy_file (DirBackendFixedSize::GetImagePathFromSubsessionPath(subsession_path), - DirBackendFixedSize::GetImagePathFromSubsessionPath(template_path)); + fs::copy_file (DirBackendFixedSize::GetImagePathFromSubsessionPath(template_path), + DirBackendFixedSize::GetImagePathFromSubsessionPath(tmp_subsession_path)); + do_resize2fs (DirBackendFixedSize::GetImagePathFromSubsessionPath(tmp_subsession_path), size_kB); return tmp_subsession_path;