Merge "Don't update quota for non-emulated volumes." into rvc-dev am: 29d6a24fbf am: 81018616a3 am: d28884ba03
Change-Id: I249f8ac6294de72f7f9d31ae2b80fc7ce10ad501
This commit is contained in:
@@ -2447,7 +2447,12 @@ public class StorageManager {
|
||||
final String filePath = path.getCanonicalPath();
|
||||
final StorageVolume volume = getStorageVolume(path);
|
||||
if (volume == null) {
|
||||
throw new IllegalStateException("Failed to update quota type for " + filePath);
|
||||
Log.w(TAG, "Failed to update quota type for " + filePath);
|
||||
return;
|
||||
}
|
||||
if (!volume.isEmulated()) {
|
||||
// We only support quota tracking on emulated filesystems
|
||||
return;
|
||||
}
|
||||
|
||||
final int userId = volume.getOwner().getIdentifier();
|
||||
|
||||
Reference in New Issue
Block a user