overlay/016: split into two tests
[xfstests-dev.git] / tests / overlay / 016
index 86a7d28faea833cfea7978757352a1bf4a357113..4fcb31ea8d6628692c70b84b9ee1e257d49398bc 100755 (executable)
@@ -1,4 +1,7 @@
 #! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 CTERA Networks. All Rights Reserved.
+#
 # FSQA Test No. 016
 #
 # Test ro/rw fd data inconsistecies
@@ -8,26 +11,6 @@
 # - process B writes new data to file F
 # - process A reads old data from file F
 #
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2016 CTERA Networks. All Rights Reserved.
-# Author: Amir Goldstein <amir73il@gmail.com>
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it would be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write the Free Software Foundation,
-# Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-#-----------------------------------------------------------------------
-#
-
 seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
@@ -60,13 +43,11 @@ _scratch_mkfs >>$seqres.full 2>&1
 lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER
 mkdir -p $lowerdir
 echo "This is old news" > $lowerdir/foo
-echo "This is old news" > $lowerdir/bar
 
 _scratch_mount
 
 
 #
-# case #1:
 # open file for read (rofd)
 # open file for write (rwfd)
 # write to rwfd
@@ -79,18 +60,5 @@ $XFS_IO_PROG -r $SCRATCH_MNT/foo \
        -C "pread -v 0 16" \
 | _filter_xfs_io | _filter_scratch
 
-#
-# case #2:
-# mmap MAP_SHARED|PROT_READ of rofd
-# write to rwfd
-# read from mapped memory
-#
-$XFS_IO_PROG -r $SCRATCH_MNT/bar \
-       -C "mmap -r 0 16" \
-       -C "open $SCRATCH_MNT/bar" \
-       -C "pwrite -S 0x61 0 16" \
-       -C "mread -v 0 16" \
-| _filter_xfs_io | _filter_scratch
-
 status=0
 exit