diff options
author | Koushik Dutta <koushd@gmail.com> | 2011-12-18 13:49:52 -0800 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2011-12-18 13:49:52 -0800 |
commit | 9487d2965f3e4ed8113af5b534d5b22185415545 (patch) | |
tree | d33c40c9a6677e5c5024ceb57cb065ea93ecd5bd /roots.c | |
parent | d4c04cb00b41a255eb7d50c2b93747d1a74ee767 (diff) | |
download | android_bootable_recovery-9487d2965f3e4ed8113af5b534d5b22185415545.tar.gz android_bootable_recovery-9487d2965f3e4ed8113af5b534d5b22185415545.tar.bz2 android_bootable_recovery-9487d2965f3e4ed8113af5b534d5b22185415545.zip |
add comments around /data/media
Change-Id: I35ad822ed602e2b1018f1e1a0d67499867b60a40
Diffstat (limited to 'roots.c')
-rw-r--r-- | roots.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -334,8 +334,10 @@ int format_volume(const char* volume) { LOGE("unknown volume \"%s\"\n", volume); return -1; } + // check to see if /data is being formatted, and if it is /data/media + // Note: the /sdcard check is redundant probably, just being safe. if (strstr(volume, "/data") == volume && volume_for_path("/sdcard") == NULL && is_data_media()) { - return format_unknown_device(NULL, volume, NULL); + return format_unknown_device(NULL, volume, NULL); } if (strcmp(v->fs_type, "ramdisk") == 0) { // you can't format the ramdisk. |