]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
generic/182: retain existing btrfs behavior when len == 0
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 24 Nov 2016 01:51:15 +0000 (17:51 -0800)
committerEryu Guan <eguan@redhat.com>
Thu, 24 Nov 2016 08:25:36 +0000 (16:25 +0800)
Since btrfs has always interpreted src_length=0 as "return 0 having
taken no action", test for that instead.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/182
tests/generic/182.out

index f484399a613398008c62ed31d906947805ff6565..7fafec0d3b3c4d49f3b70c123bdac88ff6149e35 100755 (executable)
@@ -1,10 +1,10 @@
 #! /bin/bash
 # FS QA Test No. 182
 #
-# Test the convention that dedupe with length == 0 means "to the end of fileA"
+# Test the convention that dedupe with length == 0 always returns success.
 #   - Create a file.
-#   - Try to dedupe "zero" bytes (which means dedupe to EOF).
-#   - Check that the dedupe happened.
+#   - Try to dedupe "zero" bytes.
+#   - Check that the dedupe happened and nothing changed.
 #
 #-----------------------------------------------------------------------
 # Copyright (c) 2015, Oracle and/or its affiliates.  All Rights Reserved.
index 049a3ee384849dae1565a5ab0edd01277f4a7d31..9841b76ea38d93e6d33dcda7163878e44ca5e7c8 100644 (file)
@@ -1,12 +1,10 @@
 QA output created by 182
 Create the original files
-dedupe: Extents did not match.
 f4820540fc0ac02750739896fe028d56  TEST_DIR/test-182/file1
 69ad53078a16243d98e21d9f8704a071  TEST_DIR/test-182/file2
 69ad53078a16243d98e21d9f8704a071  TEST_DIR/test-182/file2.chk
 Compare against check files
 Make the original file almost dedup-able
-dedupe: Extents did not match.
 f4820540fc0ac02750739896fe028d56  TEST_DIR/test-182/file1
 158d4e3578b94b89cbb44493a2110fb9  TEST_DIR/test-182/file2
 158d4e3578b94b89cbb44493a2110fb9  TEST_DIR/test-182/file2.chk