summaryrefslogtreecommitdiffstats
path: root/mtdutils/mounts.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-09-15 03:06:55 +0200
committerDoug Zongker <dougz@android.com>2010-09-15 06:26:38 +0200
commit8e5e4dada713609c9b2c45ea9cf4572bb89ef761 (patch)
treeb1dd9d0f6408811e71dade4f1ccbc52f18114a5e /mtdutils/mounts.c
parentadd the ability to seek to a raw location while reading MTD partition (diff)
downloadandroid_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.gz
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.bz2
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.lz
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.xz
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.zst
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.zip
Diffstat (limited to 'mtdutils/mounts.c')
-rw-r--r--mtdutils/mounts.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mtdutils/mounts.c b/mtdutils/mounts.c
index 2ab3ff60c..c90fc8acf 100644
--- a/mtdutils/mounts.c
+++ b/mtdutils/mounts.c
@@ -212,3 +212,11 @@ unmount_mounted_volume(const MountedVolume *volume)
}
return ret;
}
+
+int
+remount_read_only(const MountedVolume* volume)
+{
+ return mount(volume->device, volume->mount_point, volume->filesystem,
+ MS_NOATIME | MS_NODEV | MS_NODIRATIME |
+ MS_RDONLY | MS_REMOUNT, 0);
+}