diff options
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); +} |