Trim both internal and adopted private storage.
Refactor fstrim code to be encapsulated in unique task object, and
give it option of benchmarking when finished. Trimming now includes
both storage from fstab and adopted private volumes. Cleaner timing
stats are logged for each unique volume.
Add wakelock during ongoing async move tasks. Push disk sysfs path
to framework so it can parse any SD card registers as desired.
Bug: 21831325
Change-Id: I76577685f5cae4929c251ad314ffdaeb5eb1c8bf
diff --git a/Disk.h b/Disk.h
index 60e4fa9..77ec7df 100644
--- a/Disk.h
+++ b/Disk.h
@@ -18,6 +18,7 @@
#define ANDROID_VOLD_DISK_H
#include "Utils.h"
+#include "VolumeBase.h"
#include <utils/Errors.h>
@@ -64,6 +65,8 @@
std::shared_ptr<VolumeBase> findVolume(const std::string& id);
+ void listVolumes(VolumeBase::Type type, std::list<std::string>& list);
+
status_t create();
status_t destroy();