summaryrefslogtreecommitdiffstats
path: root/rootdir/etc
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-12-17 07:13:16 -0800
committerSan Mehat <san@google.com>2009-12-24 07:20:36 -0800
commit5184fc5c797849ee861dd4068ad57cbbe829c9d6 (patch)
tree2be68c65b33d19ed34d42ef6c5869ca2d1885126 /rootdir/etc
parent6170404867631317ab57c67bf074494e6e775556 (diff)
downloadsystem_core-5184fc5c797849ee861dd4068ad57cbbe829c9d6.zip
system_core-5184fc5c797849ee861dd4068ad57cbbe829c9d6.tar.gz
system_core-5184fc5c797849ee861dd4068ad57cbbe829c9d6.tar.bz2
rootdir: Switch to vold.fstab
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'rootdir/etc')
-rw-r--r--rootdir/etc/vold.conf10
-rw-r--r--rootdir/etc/vold.fstab24
2 files changed, 24 insertions, 10 deletions
diff --git a/rootdir/etc/vold.conf b/rootdir/etc/vold.conf
deleted file mode 100644
index 4e04509..0000000
--- a/rootdir/etc/vold.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-## vold configuration file for the 'generic' target
-
-volume_sdcard {
- ## This is the direct uevent device path to the SD slot on the device
- media_path /devices/platform/goldfish_mmc.0/mmc_host/mmc0
-
- media_type mmc
- mount_point /sdcard
- ums_path /devices/platform/usb_mass_storage/lun0
-}
diff --git a/rootdir/etc/vold.fstab b/rootdir/etc/vold.fstab
new file mode 100644
index 0000000..16065e9
--- /dev/null
+++ b/rootdir/etc/vold.fstab
@@ -0,0 +1,24 @@
+## Vold 2.0 Generic fstab
+## - San Mehat (san@android.com)
+##
+
+#######################
+## Regular device mount
+##
+## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
+## label - Label for the volume
+## mount_point - Where the volume will be mounted
+## part - Partition # (1 based), or 'auto' for first usable partition.
+## <sysfs_path> - List of sysfs paths to source devices
+######################
+
+## Example of a standard sdcard mount for the emulator / Dream
+# Mounts the first usable partition of the specified device
+dev_mount sdcard /sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
+
+## Example of a dual card setup
+# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
+# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
+
+## Example of specifying a specific partition for mounts
+# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1