aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2013-05-24 10:02:12 -0500
committerMatt Mower <mowerm@gmail.com>2013-05-24 10:31:44 -0500
commit9de39c14dc5d45e87b627f26853c98e595ddcd74 (patch)
tree4d7236604144eb426eb04f4e8569126a9e03bc48
parentc6834e32a0bfef51cc24d86d4955ffe078d2f746 (diff)
downloadbootable_recovery-9de39c14dc5d45e87b627f26853c98e595ddcd74.zip
bootable_recovery-9de39c14dc5d45e87b627f26853c98e595ddcd74.tar.gz
bootable_recovery-9de39c14dc5d45e87b627f26853c98e595ddcd74.tar.bz2
Remove (un)mount option for datamedia partitions
When /sdcard is /data/media, it can be formatted but it cannot be mounted/unmounted independently of /data (aside from creating or destrying the symlink). This removes /sdcard from the mountable volumes list, but leaves it as a formattable partition. Change-Id: If59e4516a12da4589ffb0dbd19702f219260370e
-rw-r--r--extendedcommands.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/extendedcommands.c b/extendedcommands.c
index 6ee9c9d..413e14c 100644
--- a/extendedcommands.c
+++ b/extendedcommands.c
@@ -868,10 +868,12 @@ void show_partition_menu()
for (i = 0; i < num_volumes; ++i) {
Volume* v = &device_volumes[i];
if(strcmp("ramdisk", v->fs_type) != 0 && strcmp("mtd", v->fs_type) != 0 && strcmp("emmc", v->fs_type) != 0 && strcmp("bml", v->fs_type) != 0) {
- sprintf(&mount_menu[mountable_volumes].mount, "mount %s", v->mount_point);
- sprintf(&mount_menu[mountable_volumes].unmount, "unmount %s", v->mount_point);
- mount_menu[mountable_volumes].v = &device_volumes[i];
- ++mountable_volumes;
+ if (strcmp("datamedia", v->fs_type) != 0) {
+ sprintf(&mount_menu[mountable_volumes].mount, "mount %s", v->mount_point);
+ sprintf(&mount_menu[mountable_volumes].unmount, "unmount %s", v->mount_point);
+ mount_menu[mountable_volumes].v = &device_volumes[i];
+ ++mountable_volumes;
+ }
if (is_safe_to_format(v->mount_point)) {
sprintf(&format_menu[formatable_volumes].txt, "format %s", v->mount_point);
format_menu[formatable_volumes].v = &device_volumes[i];