cleanup: add log file for file space usage 17/232217/1
authorYunmi Ha <yunmi.ha@samsung.com>
Tue, 28 Apr 2020 06:20:30 +0000 (15:20 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 29 Apr 2020 06:19:15 +0000 (06:19 +0000)
commit5c153f08525ea832e0ef04df11aa7934a1b2a0ac
treea68315734260bb3204a9d944c5c1ee6ba8fcf0d3
parent1a6b5864f4481fbdb1768e2fda926943bcaad9be
cleanup: add log file for file space usage

- When cleanup is needed, save result of "du -ah" command.
- system type: "du -ah /opt/ > /var/log/storage/opt_full.log"
- user type: "du -ah /opt/usr/ > /var/log/storage/opt_usr_full.log"

Change-Id: I1c13873e88bb8305b038ba93604bc572f3e1b48b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit e8cab4f3a451b81930d19790d5cf951b269a1c53)
src/storage/cleanup.c