platform_system_vold/model
Jin Qian a370c14f75 Add functions to handle idle maintenance
runIdleMaint is equivalent with:

1. echo 1 > /sys/fs/f2fs/sdX/gc_urgent
2. wait until /sys/fs/f2fs/sdX/dirty_segments
     <= threshold or timeout
3. echo 0 > /sys/fs/f2fs/sdX/gc_urgent
4. fstrim

abortIdleMaint forces the wait loop above to exit and
skips fstrim. However, if fstrim is already running,
abortIdleMaint will just leave it run to completion.

Test: adb shell sm idle-maint [run|abort]
Bug: 67776637
Change-Id: I4adff8d9b6bbd63bce41368cea55dc9e9b117eb6
2017-11-14 15:12:30 -08:00
..
Disk.cpp Use sgdisk to create better-aligned MBR tables. 2017-10-18 14:09:54 -06:00
Disk.h Destroy vold socket interface completely. 2017-09-18 16:00:14 -06:00
EmulatedVolume.cpp Revert "Revert "Add support for gid derivation on private volumes"" 2017-09-22 23:20:29 +00:00
EmulatedVolume.h Move even more vold commands over to Binder. 2017-09-11 18:44:17 -06:00
ObbVolume.cpp Move even more vold commands over to Binder. 2017-09-11 18:44:17 -06:00
ObbVolume.h Move even more vold commands over to Binder. 2017-09-11 18:44:17 -06:00
PrivateVolume.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
PrivateVolume.h Add functions to handle idle maintenance 2017-11-14 15:12:30 -08:00
PublicVolume.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
PublicVolume.h Move even more vold commands over to Binder. 2017-09-11 18:44:17 -06:00
VolumeBase.cpp Destroy vold socket interface completely. 2017-09-18 16:00:14 -06:00
VolumeBase.h Destroy vold socket interface completely. 2017-09-18 16:00:14 -06:00