On Thu, May 12, 2016 at 03:37:39PM +0800, Qu Wenruo wrote: > For fully deduped file, which means all its file exntents are pointing to > the same bytenr, btrfs can cause soft lockup when calling fiemap ioctl > on that file, like the following output: [snip] > + > +# then call fiemap on that file to test both the shared flag and if > +# reserved extent mapping search will cause soft lockup > +$XFS_IO_PROG -c "fiemap -v" $file | _filter_fiemap_flags > $tmp > +cat $tmp >> $seqres.full $tmp won't be removed after test, in _cleanup() it's removing $tmp.* $tmp.out is better. > + > +# refact the $LOAD_FACTOR to 1 to match the golden output > +sed -i -e "s/$(($last_extent - 1))/$(($orig_last_extent - 1))/" \ > + -e "s/$last_extent/$orig_last_extent/" \ > + -e "s/$end/$orig_end/" $tmp > +cat $tmp Same here. Otherwise looks good to me. Thanks, Eryu > + > +# success, all done > +status=0 > +exit > diff --git a/tests/generic/352.out b/tests/generic/352.out > new file mode 100644 > index 0000000..a87c507 > --- /dev/null > +++ b/tests/generic/352.out > @@ -0,0 +1,5 @@ > +QA output created by 352 > +wrote 131072/131072 bytes at offset 0 > +XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) > +0: [0..2097151]: 0x2000 > +1: [2097152..2097407]: 0x2001 > diff --git a/tests/generic/group b/tests/generic/group > index 36fb759..3f00386 100644 > --- a/tests/generic/group > +++ b/tests/generic/group > @@ -354,3 +354,4 @@ > 349 blockdev quick rw > 350 blockdev quick rw > 351 blockdev quick rw > +352 auto clone > -- > 2.5.5 > > > > -- > To unsubscribe from this list: send the line "unsubscribe fstests" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html