# http://oss.sgi.com/bugzilla/show_bug.cgi?id=807
#
echo "unmounting read-only filesystem"
-_scratch_unmount 2>&1 | _filter_scratch
+_scratch_unmount 2>&1 | _filter_scratch | _filter_ending_dot
echo "setting device read-write"
blockdev --setrw $SCRATCH_DEV
echo "mounting filesystem with -o norecovery on a read-only device:"
_try_scratch_mount -o norecovery 2>&1 | _filter_ro_mount
echo "unmounting read-only filesystem"
-_scratch_unmount 2>&1 | _filter_scratch
+_scratch_unmount 2>&1 | _filter_scratch | _filter_ending_dot
echo "setting device read-write"
blockdev --setrw $SCRATCH_DEV
mount: /mnt-scratch: permission denied
touching file on read-only filesystem (should fail)
unmounting read-only filesystem
-umount: SCRATCH_DEV: not mounted.
+umount: SCRATCH_DEV: not mounted
setting device read-write
mounting read-write block device:
touch files
mounting filesystem with -o norecovery on a read-only device:
mount: /mnt-scratch: permission denied
unmounting read-only filesystem
-umount: SCRATCH_DEV: not mounted.
+umount: SCRATCH_DEV: not mounted
setting device read-write
mounting filesystem that needs recovery with -o ro:
*** done