linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FIDEDUPERANGE with src_length == 0
@ 2016-07-12  0:35 Omar Sandoval
  2016-07-13  5:26 ` Darrick J. Wong
  0 siblings, 1 reply; 9+ messages in thread
From: Omar Sandoval @ 2016-07-12  0:35 UTC (permalink / raw)
  To: Darrick J. Wong, linux-btrfs; +Cc: linux-fsdevel

Hey, Darrick,

generic/182 is failing on Btrfs for me with the following output:

--- tests/generic/182.out       2016-07-07 19:51:54.000000000 -0700
+++ /tmp/fixxfstests/xfstests/results//generic/182.out.bad      2016-07-11 17:28:28.230039216 -0700
@@ -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

It looks like that test is checking that a dedupe with length == 0 is
treated as a dedupe to EOF, but Btrfs doesn't do that [1]. As far as I
can tell, it never did, but maybe I'm just confused. What was the
behavior when you introduced that test? That seems like a reasonable
thing to do, but I wanted to clear this up before changing/fixing Btrfs.

Thanks.

1: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/btrfs/ioctl.c?h=v4.7-rc7#n3122
-- 
Omar

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-08-01 19:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-12  0:35 FIDEDUPERANGE with src_length == 0 Omar Sandoval
2016-07-13  5:26 ` Darrick J. Wong
2016-07-13 13:19   ` David Sterba
2016-07-14 18:06     ` Darrick J. Wong
2016-07-14 18:12       ` Chris Mason
2016-07-14 18:16         ` Omar Sandoval
2016-07-15 16:54           ` Darrick J. Wong
2016-08-01 19:32           ` Darrick J. Wong
2016-07-14  2:47   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).