projects
/
platform
/
core
/
appfw
/
app-installers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af4f6f0
)
Fix CheckFreeSpaceAtPath
57/321257/1
author
Sangyoon Jang
<jeremy.jang@samsung.com>
Fri, 27 Dec 2024 05:18:04 +0000
(14:18 +0900)
committer
Sangyoon Jang
<jeremy.jang@samsung.com>
Tue, 18 Mar 2025 05:21:52 +0000
(
05:21
+0000)
Check available space instead of free space.
(available = free - reserved filesystem blocks)
Change-Id: I2b82e4aef06df3034a88cff8c16b764625d2854c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit
6d7be653393118282e2b8e20ae82c04903b83c31
)
src/common/utils/file_util.cc
patch
|
blob
|
history
diff --git
a/src/common/utils/file_util.cc
b/src/common/utils/file_util.cc
index 45e99eb14baaa62eef1ac4dbf5577f5354691c3a..47888f829ed2a2717dce97342634006ccea71646 100644
(file)
--- a/
src/common/utils/file_util.cc
+++ b/
src/common/utils/file_util.cc
@@
-491,7
+491,7
@@
bool CheckFreeSpaceAtPath(int64_t required_size,
return false;
}
- return (space_info.
fre
e >= static_cast<uint64_t>(required_size));
+ return (space_info.
availabl
e >= static_cast<uint64_t>(required_size));
}
fs::path GenerateTmpDir(const fs::path &app_path) {