]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: (man) fix example
authorKarel Zak <kzak@redhat.com>
Mon, 3 Jan 2022 12:23:54 +0000 (13:23 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Jan 2022 12:23:54 +0000 (13:23 +0100)
Fixes: https://github.com/util-linux/util-linux/issues/1539
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.8.adoc

index e1b3a788885a9e5a995b2643dfb0dea99a46705d..f2596b3553e98d9b124157ea88918b851d861c7d 100644 (file)
@@ -227,7 +227,9 @@ This feature is not supported by the Linux kernel; it is implemented in userspac
 The alternative (classic) way to create a read-only bind mount is to use the remount operation, for example:
 
 ____
-*mount --bind* _olddir newdir_ *mount -o remount,bind,ro* _olddir newdir_
+*mount --bind* _olddir newdir_
+
+*mount -o remount,bind,ro* _olddir newdir_
 ____
 
 Note that a read-only bind will create a read-only mountpoint (VFS entry), but the original filesystem superblock will still be writable, meaning that the _olddir_ will be writable, but the _newdir_ will be read-only.