[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <176169820070.1433624.9318265704888391346.stgit@frogsfrogsfrogs>
Date: Tue, 28 Oct 2025 18:21:44 -0700
From: "Darrick J. Wong" <djwong@...nel.org>
To: djwong@...nel.org, zlang@...hat.com
Cc: neal@...pa.dev, fstests@...r.kernel.org, linux-ext4@...r.kernel.org,
 linux-fsdevel@...r.kernel.org, joannelkoong@...il.com, bernd@...ernd.com
Subject: [PATCH 05/33] common/rc: streamline _scratch_remount
From: Darrick J. Wong <djwong@...nel.org>
Remounting a filesystem should be pretty straightforward invocation of
mount -o remount,XXX.  Instead, we go through _try_scratch_mount, which
recomputes the filesystem type and the mount options, which is probably
not what the caller actually wanted.  Streamline this by calling the
_mount wrapper directly.
This also means that /sbin/mount.$FSTYP won't be invoked for a remount,
which doesn't work if that binary is actually a fuse filesystem driver.
Signed-off-by: "Darrick J. Wong" <djwong@...nel.org>
---
 common/rc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/rc b/common/rc
index 98609cb6e7a058..182a782a16783e 100644
--- a/common/rc
+++ b/common/rc
@@ -552,7 +552,7 @@ _scratch_remount()
     local opts="$1"
 
     if test -n "$opts"; then
-	_try_scratch_mount "-o remount,$opts"
+	_mount $SCRATCH_MNT "-o remount,$opts"
     fi
 }
 
Powered by blists - more mailing lists
 
