diff options
author | Doug Zongker <dougz@android.com> | 2010-09-15 06:32:14 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-09-15 06:32:14 +0200 |
commit | 858f0a763d0f736eb721f54257b6164886bfcbfc (patch) | |
tree | b1dd9d0f6408811e71dade4f1ccbc52f18114a5e /mtdutils/mounts.c | |
parent | am d12560aa: add the ability to seek to a raw location while reading MTD partition (diff) | |
parent | close update package before installing; allow remount (diff) | |
download | android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.gz android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.bz2 android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.lz android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.xz android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.zst android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.zip |
Diffstat (limited to 'mtdutils/mounts.c')
-rw-r--r-- | mtdutils/mounts.c | 8 |
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); +} |