mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: do not unmount tmpfs during remount
Several tests unmount then re-mount the scratch filesystem, to check that the content is unchanged; but unmounting a tmpfs is designed to lose its content, which causes such tests to fail unnecessarily. Signed-off-by: Hugh Dickins <hughd@google.com> Signed-off-by: Junho Ryu <jayr@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
+1
-2
@@ -67,8 +67,7 @@ touch $BINDFILE || _fail "Could not create bind mount file"
|
||||
touch $TARGET || _fail "Could not create symlink target"
|
||||
ln -s $TARGET $SYMLINK
|
||||
|
||||
_scratch_unmount || _fail "Could not unmount scratch device"
|
||||
_scratch_mount -o ro || _fail "Could not mount scratch readonly"
|
||||
_scratch_remount ro || _fail "Could not remount scratch readonly"
|
||||
|
||||
# We should be able to read & write to/from these devices even on an RO fs
|
||||
echo "== try to create new file"
|
||||
|
||||
Reference in New Issue
Block a user