Change-Id: If5dae7fc440ad1a50bb77ac66edde5ae6381de67
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;