From 20c3be0e0394e1340c036685eb1edb8f6ef5a2ac Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Sun, 12 Dec 2010 12:17:43 -0800 Subject: MTP: Add support for reserve storage setting to avoid low storage situations. Set resource config_mtpReserveSpaceMegabytes to number of megabytes to reserve. If MTP has dedicated storage this value should be zero, but if MTP is sharing storage with the rest of the system, set this to a positive value to ensure that MTP activity does not result in the storage being too close to full. BUG: 3250924 Change-Id: I881c87240da268bad1ea1b99ad03673ab85ffdbf Signed-off-by: Mike Lockwood --- media/mtp/MtpServer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/mtp/MtpServer.h') diff --git a/media/mtp/MtpServer.h b/media/mtp/MtpServer.h index 5aee4ea..605d5a2 100644 --- a/media/mtp/MtpServer.h +++ b/media/mtp/MtpServer.h @@ -67,7 +67,7 @@ public: int fileGroup, int filePerm, int directoryPerm); virtual ~MtpServer(); - void addStorage(const char* filePath); + void addStorage(const char* filePath, uint64_t reserveSpace); inline void addStorage(MtpStorage* storage) { mStorages.push(storage); } MtpStorage* getStorage(MtpStorageID id); void run(); -- cgit v1.1