From 189a1bf3b314a8fc48c29ea1e0287d5cc71021a0 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 16 Jan 2019 15:00:07 +0100 Subject: 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 --- sys-utils/mount.8 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys-utils/mount.8') 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. -- cgit v1.2.3-55-g7522