Add CleanupStorage Function 59/218459/1
authorYunmi Ha <yunmi.ha@samsung.com>
Thu, 31 Oct 2019 05:28:24 +0000 (14:28 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 22 Nov 2019 10:54:11 +0000 (10:54 +0000)
commit474ee21fea9e684e2d1e001fc7329021ee83f5ef
tree908291af337b28a66c5045171baf949d27440963
parent0a79c397b9cdec364ffa622fd2f38daafe033a0c
Add CleanupStorage Function

Refer to the config file,
delete the data according to the storage level.
config: /etc/storaged/cleanup-storage.conf

Change-Id: I589c7a03fa65ac17a62d12bcd301510485ea8731
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
(cherry picked from commit 94b941f2ee66702934f3d7168faa7c5b166a0aa5)
packaging/storaged.spec
src/storage/CMakeLists.txt
src/storage/cleanup.c [new file with mode: 0644]
src/storage/cleanup.h [new file with mode: 0644]
src/storage/cleanup_config.c [new file with mode: 0644]
src/storage/cleanup_config.h [new file with mode: 0644]
src/storage/sample-cleanup-storage.conf [new file with mode: 0644]
src/storage/storage.c