diff options
author | Karel Zak | 2019-01-16 15:00:07 +0100 |
---|---|---|
committer | Karel Zak | 2019-01-16 15:00:07 +0100 |
commit | 189a1bf3b314a8fc48c29ea1e0287d5cc71021a0 (patch) | |
tree | 684d7415e61e2769f2053cc35801f0c8256d8396 /sys-utils/mount.8 | |
parent | fsck.cramfs: fix utimes() usage (diff) | |
download | kernel-qcow2-util-linux-189a1bf3b314a8fc48c29ea1e0287d5cc71021a0.tar.gz kernel-qcow2-util-linux-189a1bf3b314a8fc48c29ea1e0287d5cc71021a0.tar.xz kernel-qcow2-util-linux-189a1bf3b314a8fc48c29ea1e0287d5cc71021a0.zip |
libmount: add support for MS_REMOUNT on --all
This patch add to support for remount-all operation to
libmount and mount(8).
For example:
mount --all -o remount,ro -t vfat
to remount read-only all VFAT filesystems.
Addresses: https://github.com/karelzak/util-linux/issues/589
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.8')
-rw-r--r-- | sys-utils/mount.8 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index da0ac5b8b..6ef589050 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -580,6 +580,10 @@ mount or btrfs) to detect already mounted filesystems. The kernel table with already mounted filesystems is cached during \fBmount \-\-all\fR. It means that all duplicated fstab entries will be mounted. .sp +The option \fB\-\-all\fR is possible to use for remount operation too. In this +case all filters (\fB\-t\fR and \fB\-O\fR) are applied to the table of already +mounted filesystems. +.sp Note that it is a bad practice to use \fBmount \-a\fR for .I fstab checking. The recommended solution is \fBfindmnt \-\-verify\fR. |