Skip to contentSkip to conversation

common/rc: use _try_scratch_mount for scratch_remount

PATCH New XiaoLi Feng 1 participant 1 message Apr 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 common/rc: use _try_scratch_mount for scratch_remount

From: Xiaoli Feng <[email protected]>

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

---

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(-)
common/rc +1 -1
index 1c42515f..6c262e32 100644
@@ -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
 }
 
tests/overlay/035 +1 -1
index f36c1e10..c0aae935 100755
@@ -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
Signature · 1 line
2.18.1