From d440e09272df37e389fdc08bd7282391371bd03c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Sun, 2 Jan 2011 23:04:47 +0100 Subject: [PATCH] tests: use findmnt(8) for remount test Signed-off-by: Karel Zak --- tests/ts/mount/remount | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ts/mount/remount b/tests/ts/mount/remount index d303703b..33db5dca 100755 --- a/tests/ts/mount/remount +++ b/tests/ts/mount/remount @@ -42,8 +42,8 @@ $TS_CMD_MOUNT -o remount,ro $TS_MOUNTPOINT \ || ts_die "Cannot remount $TS_MOUNTPOINT" $DEVICE # check the remount -egrep -q "^$DEVICE $TS_MOUNTPOINT ext2 ro 0 0" /etc/mtab \ - || ts_die "Cannot found remounted $TS_MOUNTPOINT in /etc/mtab" $DEVICE +$TS_CMD_FINDMNT --kernel --target "$TS_MOUNTPOINT" --options "ro" &> /dev/null +[ "$?" == "0" ] || ts_die "Cannot found read-only in $TS_MOUNTPOINT in /proc/self/mountinfo" ts_device_deinit $DEVICE -- 2.39.5