]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/717: remove obsolete check
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jun 2024 20:55:21 +0000 (13:55 -0700)
committerZorro Lang <zlang@kernel.org>
Sun, 23 Jun 2024 15:04:35 +0000 (23:04 +0800)
The final version of the EXCHANGERANGE ioctl has dropped the flag that
enforced that the two files being operated upon were exactly the same
length as was specified in the ioctl parameters.  Remove this check
since it's now defunct.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/717
tests/generic/717.out

index ffabe2eaa1f1e15c9b61150f9519f879215c9d90..7bc917e555a6b68a4fa8b9bf0dc633b4c44b55b5 100755 (executable)
@@ -77,11 +77,6 @@ $XFS_IO_PROG -c "exchangerange -d 0 -s $(( blksz * nrblks )) -l 37 $dir/b" $dir/
 echo file2 unaligned EOF to file1 nowhere near EOF
 $XFS_IO_PROG -c "exchangerange -s 0 -d $(( blksz * nrblks )) -l 37 $dir/b" $dir/a
 
-echo Files of unequal length
-_pwrite_byte 0x58 $((blksz * nrblks)) $((blksz * 2)) $dir/a >> $seqres.full
-_pwrite_byte 0x59 $((blksz * nrblks)) $blksz $dir/b >> $seqres.full
-$XFS_IO_PROG -c "exchangerange $dir/b" $dir/a
-
 echo Files on different filesystems
 _pwrite_byte 0x58 0 $((blksz * nrblks)) $SCRATCH_MNT/c >> $seqres.full
 $XFS_IO_PROG -c "exchangerange $SCRATCH_MNT/c" $dir/a
index 85137bf412564273a4dc9aa51ff17a280bd3f6f9..e2c630d6d9ece83d29b7b71f253731d8f0c60e03 100644 (file)
@@ -23,8 +23,6 @@ file1 unaligned EOF to file2 nowhere near EOF
 exchangerange: Invalid argument
 file2 unaligned EOF to file1 nowhere near EOF
 exchangerange: Invalid argument
-Files of unequal length
-exchangerange: Bad address
 Files on different filesystems
 exchangerange: Invalid cross-device link
 Files on different mounts