From 157ea20eb26e214374e917813a78ecf6068db76e Mon Sep 17 00:00:00 2001 From: Daniel Hill Date: Sat, 11 Feb 2023 13:45:23 +1300 Subject: mount: support remount remount is handled by libc, not the kernel mount procedure, this fixes remounts. Also sorted the list of flags. Signed-off-by: Daniel Hill --- rust-src/mount/src/filesystem.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rust-src') diff --git a/rust-src/mount/src/filesystem.rs b/rust-src/mount/src/filesystem.rs index f47319c9..28a2ab9e 100644 --- a/rust-src/mount/src/filesystem.rs +++ b/rust-src/mount/src/filesystem.rs @@ -128,9 +128,10 @@ fn parse_mount_options(options: impl AsRef) -> (Option, u64) { "nodiratime" => Left(libc::MS_NODIRATIME), "noexec" => Left(libc::MS_NOEXEC), "nosuid" => Left(libc::MS_NOSUID), + "relatime" => Left(libc::MS_RELATIME), + "remount" => Left(libc::MS_REMOUNT), "ro" => Left(libc::MS_RDONLY), "rw" => Left(0), - "relatime" => Left(libc::MS_RELATIME), "strictatime" => Left(libc::MS_STRICTATIME), "sync" => Left(libc::MS_SYNCHRONOUS), "" => Left(0), -- cgit v1.2.3