fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] common/rc: use _try_scratch_mount for scratch_remount
@ 2019-04-08  2:30 XiaoLi Feng
  2019-04-09  1:50 ` Eryu Guan
  0 siblings, 1 reply; 4+ messages in thread
From: XiaoLi Feng @ 2019-04-08  2:30 UTC (permalink / raw)
  To: fstests; +Cc: smfrench, Xiaoli Feng

From: Xiaoli Feng <xifeng@redhat.com>

When call _scratch_remount for cifs , it always requires to input
password. This will make generic/306 generic/452 failed because
cifs remount failed.
---
 common/rc         | 2 +-
 tests/overlay/035 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/rc b/common/rc
index 1c42515f..6c262e32 100644
--- a/common/rc
+++ b/common/rc
@@ -357,7 +357,7 @@ _scratch_remount()
     local opts="$1"
 
     if test -n "$opts"; then
-	mount -o "remount,$opts" $SCRATCH_MNT
+	_try_scratch_mount "-o remount,$opts"
     fi
 }
 
diff --git a/tests/overlay/035 b/tests/overlay/035
index f36c1e10..c0aae935 100755
--- a/tests/overlay/035
+++ b/tests/overlay/035
@@ -55,7 +55,7 @@ mkdir -p $lowerdir1 $lowerdir2 $upperdir $workdir
 $MOUNT_PROG -t overlay -o"lowerdir=$lowerdir2:$lowerdir1" \
 			$OVL_BASE_SCRATCH_MNT $SCRATCH_MNT
 touch $SCRATCH_MNT/foo 2>&1 | _filter_scratch
-_scratch_remount rw 2>&1 | _filter_ro_mount
+$MOUNT_PROG -o remount,rw $SCRATCH_MNT 2>&1 | _filter_ro_mount
 $UMOUNT_PROG $SCRATCH_MNT
 
 # Make workdir immutable to prevent workdir re-create on mount
-- 
2.18.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH v3] common/rc: use _try_scratch_mount for scratch_remount
@ 2019-04-09  2:48 XiaoLi Feng
  0 siblings, 0 replies; 4+ messages in thread
From: XiaoLi Feng @ 2019-04-09  2:48 UTC (permalink / raw)
  To: fstests; +Cc: guaneryu, smfrench, Xiaoli Feng

From: Xiaoli Feng <xifeng@redhat.com>

When call _scratch_remount for cifs , it always requires to input
password. This will make generic/306 generic/452 failed because
cifs remount failed.

Signed-off-by: Xiaoli Feng <xifeng@redhat.com>
---

Re-send this mail. Because the last mail missed Signed-off-by tag.
Thanks Eryu for the review and suggestions.

 common/rc         | 2 +-
 tests/overlay/035 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/rc b/common/rc
index 1c42515f..6c262e32 100644
--- a/common/rc
+++ b/common/rc
@@ -357,7 +357,7 @@ _scratch_remount()
     local opts="$1"
 
     if test -n "$opts"; then
-	mount -o "remount,$opts" $SCRATCH_MNT
+	_try_scratch_mount "-o remount,$opts"
     fi
 }
 
diff --git a/tests/overlay/035 b/tests/overlay/035
index f36c1e10..c0aae935 100755
--- a/tests/overlay/035
+++ b/tests/overlay/035
@@ -55,7 +55,7 @@ mkdir -p $lowerdir1 $lowerdir2 $upperdir $workdir
 $MOUNT_PROG -t overlay -o"lowerdir=$lowerdir2:$lowerdir1" \
 			$OVL_BASE_SCRATCH_MNT $SCRATCH_MNT
 touch $SCRATCH_MNT/foo 2>&1 | _filter_scratch
-_scratch_remount rw 2>&1 | _filter_ro_mount
+$MOUNT_PROG -o remount,rw $SCRATCH_MNT 2>&1 | _filter_ro_mount
 $UMOUNT_PROG $SCRATCH_MNT
 
 # Make workdir immutable to prevent workdir re-create on mount
-- 
2.18.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-09  2:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-08  2:30 [PATCH v3] common/rc: use _try_scratch_mount for scratch_remount XiaoLi Feng
2019-04-09  1:50 ` Eryu Guan
     [not found]   ` <CAH2r5mtbjLomReukHw8xO_mm8R0MgVBo7GzZWFxC8i+6X-JeeA@mail.gmail.com>
2019-04-09  2:05     ` Fwd: " Steve French
  -- strict thread matches above, loose matches on Subject: below --
2019-04-09  2:48 XiaoLi Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).