]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: add support for "bind,ro"
authorKarel Zak <kzak@redhat.com>
Mon, 17 Aug 2015 09:54:26 +0000 (11:54 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Aug 2015 09:54:26 +0000 (11:54 +0200)
commit9ac77b8a78452eab0612523d27fee52159f5016a
tree1027d32d1c3b2065fc4efe5f15105c283a34f7f9
parent5b7be9900aadd361335189296eb034879b28b171
libmount: add support for "bind,ro"

Now it's necessary t use two mount(8) calls to create a read-only
mount:

  mount /foo /bar -o bind
  mount /bar -o remount,ro,bind

This patch allows to specify "bind,ro" and the remount is done
automatically by libmount by additional mount(2) syscall. It's not
atomic of course.

Signed-off-by: Karel Zak <kzak@redhat.com>
Documentation/releases/v2.27-ReleaseNotes
libmount/src/context_mount.c
sys-utils/mount.8