unmount: Pass in mount options when remounting read-only
authorJan Janssen <medhefgo@web.de>
Mon, 26 Oct 2015 14:13:28 +0000 (15:13 +0100)
committerJan Janssen <medhefgo@web.de>
Mon, 26 Oct 2015 14:13:28 +0000 (15:13 +0100)
commit471b48ed2ff6539e7071ff4694c03483c5835639
tree58d2bc5567406ed5da28631c59c5ba78cb56d518
parentad1a44b23bbc909aa3f5876dadd482a9f6c18d5c
unmount: Pass in mount options when remounting read-only

man 2 mount says that the mountflags and data parameteres should
match the original values except for the desired changes. We only
bother with the mount options since the only flags we can change
are MS_RDONLY, MS_SYNCHRONOUS and MS_MANDLOCK; which shouldn't
matter too much.

Fixes: #351
src/core/umount.c