summaryrefslogtreecommitdiffstats
path: root/mtdutils/mounts.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-09-16 01:32:52 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-16 01:32:52 +0200
commit6b1ff61f62db82adf8e47c121cd13c29831ad21b (patch)
tree8c6fc308e9e26895a46aca7ba7e930dd83fe6a44 /mtdutils/mounts.c
parentam bd4bc088: am d12560aa: add the ability to seek to a raw location while reading MTD partition (diff)
parentam 8e5e4dad: close update package before installing; allow remount (diff)
downloadandroid_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.gz
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.bz2
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.lz
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.xz
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.zst
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.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);
+}