* xfs/310: relax extent count check
@ 2017-09-03 15:51 Christoph Hellwig
2017-09-06 7:34 ` Eryu Guan
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Christoph Hellwig @ 2017-09-03 15:51 UTC (permalink / raw)
To: fstests; +Cc: Darrick J. Wong
If we got over the bmbt length we'll always allocate two extents,
its just that so far getbmap merged them.
Also fix/update some comments.
diff --git a/tests/xfs/310 b/tests/xfs/310
index c78f6f1..f33a15a 100755
--- a/tests/xfs/310
+++ b/tests/xfs/310
@@ -1,7 +1,7 @@
#! /bin/bash
# FS QA Test No. 310
#
-# Create a file with more than 2^21 extents (the max length of a bmbt record).
+# Create a file with more than 2^21 blocks (the max length of a bmbt record).
#
#-----------------------------------------------------------------------
# Copyright (c) 2016, Oracle and/or its affiliates. All Rights Reserved.
@@ -75,8 +75,9 @@ mkdir $testdir
blksz="$(_get_block_size $testdir)"
$XFS_IO_PROG -f -c "falloc 0 $((nr_blks * blksz))" $testdir/file1 >> $seqres.full
+# make sure the allocator didn't allocate more than the needed two extents
echo "Check extent count"
-xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*1:' -q && xfs_bmap -l -p -v $testdir/file1
+xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*2:' -q && xfs_bmap -l -p -v $testdir/file1
inum=$(stat -c '%i' $testdir/file1)
umount $SCRATCH_MNT
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: xfs/310: relax extent count check
2017-09-03 15:51 xfs/310: relax extent count check Christoph Hellwig
@ 2017-09-06 7:34 ` Eryu Guan
2017-09-14 4:09 ` Eryu Guan
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Eryu Guan @ 2017-09-06 7:34 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: fstests, Christoph Hellwig
Hi Darrick,
On Sun, Sep 03, 2017 at 05:51:01PM +0200, Christoph Hellwig wrote:
> If we got over the bmbt length we'll always allocate two extents,
> its just that so far getbmap merged them.
>
> Also fix/update some comments.
Could you please help review this patch? Thanks a lot!
Eryu
>
> diff --git a/tests/xfs/310 b/tests/xfs/310
> index c78f6f1..f33a15a 100755
> --- a/tests/xfs/310
> +++ b/tests/xfs/310
> @@ -1,7 +1,7 @@
> #! /bin/bash
> # FS QA Test No. 310
> #
> -# Create a file with more than 2^21 extents (the max length of a bmbt record).
> +# Create a file with more than 2^21 blocks (the max length of a bmbt record).
> #
> #-----------------------------------------------------------------------
> # Copyright (c) 2016, Oracle and/or its affiliates. All Rights Reserved.
> @@ -75,8 +75,9 @@ mkdir $testdir
> blksz="$(_get_block_size $testdir)"
> $XFS_IO_PROG -f -c "falloc 0 $((nr_blks * blksz))" $testdir/file1 >> $seqres.full
>
> +# make sure the allocator didn't allocate more than the needed two extents
> echo "Check extent count"
> -xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*1:' -q && xfs_bmap -l -p -v $testdir/file1
> +xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*2:' -q && xfs_bmap -l -p -v $testdir/file1
> inum=$(stat -c '%i' $testdir/file1)
> umount $SCRATCH_MNT
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs/310: relax extent count check
2017-09-03 15:51 xfs/310: relax extent count check Christoph Hellwig
2017-09-06 7:34 ` Eryu Guan
@ 2017-09-14 4:09 ` Eryu Guan
2017-09-18 21:10 ` Darrick J. Wong
2017-09-19 2:28 ` Darrick J. Wong
3 siblings, 0 replies; 8+ messages in thread
From: Eryu Guan @ 2017-09-14 4:09 UTC (permalink / raw)
To: Christoph Hellwig, linux-xfs; +Cc: fstests, Darrick J. Wong
[adding linux-xfs list]
On Sun, Sep 03, 2017 at 05:51:01PM +0200, Christoph Hellwig wrote:
> If we got over the bmbt length we'll always allocate two extents,
> its just that so far getbmap merged them.
>
> Also fix/update some comments.
>
> diff --git a/tests/xfs/310 b/tests/xfs/310
> index c78f6f1..f33a15a 100755
> --- a/tests/xfs/310
> +++ b/tests/xfs/310
> @@ -1,7 +1,7 @@
> #! /bin/bash
> # FS QA Test No. 310
> #
> -# Create a file with more than 2^21 extents (the max length of a bmbt record).
> +# Create a file with more than 2^21 blocks (the max length of a bmbt record).
> #
> #-----------------------------------------------------------------------
> # Copyright (c) 2016, Oracle and/or its affiliates. All Rights Reserved.
> @@ -75,8 +75,9 @@ mkdir $testdir
> blksz="$(_get_block_size $testdir)"
> $XFS_IO_PROG -f -c "falloc 0 $((nr_blks * blksz))" $testdir/file1 >> $seqres.full
>
> +# make sure the allocator didn't allocate more than the needed two extents
> echo "Check extent count"
> -xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*1:' -q && xfs_bmap -l -p -v $testdir/file1
> +xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*2:' -q && xfs_bmap -l -p -v $testdir/file1
It'd be great if someone could help to review this change. Thanks a lot!
Eryu
> inum=$(stat -c '%i' $testdir/file1)
> umount $SCRATCH_MNT
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs/310: relax extent count check
2017-09-03 15:51 xfs/310: relax extent count check Christoph Hellwig
2017-09-06 7:34 ` Eryu Guan
2017-09-14 4:09 ` Eryu Guan
@ 2017-09-18 21:10 ` Darrick J. Wong
2017-09-18 23:39 ` Christoph Hellwig
2017-09-19 2:28 ` Darrick J. Wong
3 siblings, 1 reply; 8+ messages in thread
From: Darrick J. Wong @ 2017-09-18 21:10 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: fstests
On Sun, Sep 03, 2017 at 05:51:01PM +0200, Christoph Hellwig wrote:
> If we got over the bmbt length we'll always allocate two extents,
> its just that so far getbmap merged them.
>
> Also fix/update some comments.
>
> diff --git a/tests/xfs/310 b/tests/xfs/310
> index c78f6f1..f33a15a 100755
> --- a/tests/xfs/310
> +++ b/tests/xfs/310
> @@ -1,7 +1,7 @@
> #! /bin/bash
> # FS QA Test No. 310
> #
> -# Create a file with more than 2^21 extents (the max length of a bmbt record).
> +# Create a file with more than 2^21 blocks (the max length of a bmbt record).
> #
> #-----------------------------------------------------------------------
> # Copyright (c) 2016, Oracle and/or its affiliates. All Rights Reserved.
> @@ -75,8 +75,9 @@ mkdir $testdir
> blksz="$(_get_block_size $testdir)"
> $XFS_IO_PROG -f -c "falloc 0 $((nr_blks * blksz))" $testdir/file1 >> $seqres.full
>
> +# make sure the allocator didn't allocate more than the needed two extents
> echo "Check extent count"
> -xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*1:' -q && xfs_bmap -l -p -v $testdir/file1
> +xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*2:' -q && xfs_bmap -l -p -v $testdir/file1
I haven't had time to read the getbmap rework over in xfs-land yet, but
I'm assuming from this diff that the new getbmap no longer merges adjacent
records?
Also, won't this break the test on old kernels?
--D
> inum=$(stat -c '%i' $testdir/file1)
> umount $SCRATCH_MNT
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs/310: relax extent count check
2017-09-18 21:10 ` Darrick J. Wong
@ 2017-09-18 23:39 ` Christoph Hellwig
0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2017-09-18 23:39 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Christoph Hellwig, fstests
On Mon, Sep 18, 2017 at 02:10:42PM -0700, Darrick J. Wong wrote:
> > +# make sure the allocator didn't allocate more than the needed two extents
> > echo "Check extent count"
> > -xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*1:' -q && xfs_bmap -l -p -v $testdir/file1
> > +xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*2:' -q && xfs_bmap -l -p -v $testdir/file1
>
> I haven't had time to read the getbmap rework over in xfs-land yet, but
> I'm assuming from this diff that the new getbmap no longer merges adjacent
> records?
Yes.
> Also, won't this break the test on old kernels?
No - it just checks we don't have more than two extents instead of
checking we don't have more than one, so it just relaxes the check
a bit.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs/310: relax extent count check
2017-09-03 15:51 xfs/310: relax extent count check Christoph Hellwig
` (2 preceding siblings ...)
2017-09-18 21:10 ` Darrick J. Wong
@ 2017-09-19 2:28 ` Darrick J. Wong
2017-09-19 2:56 ` Eryu Guan
2017-09-19 3:05 ` Christoph Hellwig
3 siblings, 2 replies; 8+ messages in thread
From: Darrick J. Wong @ 2017-09-19 2:28 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: fstests, Eryu Guan
On Sun, Sep 03, 2017 at 05:51:01PM +0200, Christoph Hellwig wrote:
> If we got over the bmbt length we'll always allocate two extents,
> its just that so far getbmap merged them.
>
> Also fix/update some comments.
>
Needs a s-o-b. Otherwise,
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
--D
> diff --git a/tests/xfs/310 b/tests/xfs/310
> index c78f6f1..f33a15a 100755
> --- a/tests/xfs/310
> +++ b/tests/xfs/310
> @@ -1,7 +1,7 @@
> #! /bin/bash
> # FS QA Test No. 310
> #
> -# Create a file with more than 2^21 extents (the max length of a bmbt record).
> +# Create a file with more than 2^21 blocks (the max length of a bmbt record).
> #
> #-----------------------------------------------------------------------
> # Copyright (c) 2016, Oracle and/or its affiliates. All Rights Reserved.
> @@ -75,8 +75,9 @@ mkdir $testdir
> blksz="$(_get_block_size $testdir)"
> $XFS_IO_PROG -f -c "falloc 0 $((nr_blks * blksz))" $testdir/file1 >> $seqres.full
>
> +# make sure the allocator didn't allocate more than the needed two extents
> echo "Check extent count"
> -xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*1:' -q && xfs_bmap -l -p -v $testdir/file1
> +xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*2:' -q && xfs_bmap -l -p -v $testdir/file1
> inum=$(stat -c '%i' $testdir/file1)
> umount $SCRATCH_MNT
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs/310: relax extent count check
2017-09-19 2:28 ` Darrick J. Wong
@ 2017-09-19 2:56 ` Eryu Guan
2017-09-19 3:05 ` Christoph Hellwig
1 sibling, 0 replies; 8+ messages in thread
From: Eryu Guan @ 2017-09-19 2:56 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Christoph Hellwig, fstests
On Mon, Sep 18, 2017 at 07:28:59PM -0700, Darrick J. Wong wrote:
> On Sun, Sep 03, 2017 at 05:51:01PM +0200, Christoph Hellwig wrote:
> > If we got over the bmbt length we'll always allocate two extents,
> > its just that so far getbmap merged them.
> >
> > Also fix/update some comments.
> >
>
> Needs a s-o-b. Otherwise,
I can fix it up.
> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Thanks for reviewing!
Eryu
>
> --D
>
> > diff --git a/tests/xfs/310 b/tests/xfs/310
> > index c78f6f1..f33a15a 100755
> > --- a/tests/xfs/310
> > +++ b/tests/xfs/310
> > @@ -1,7 +1,7 @@
> > #! /bin/bash
> > # FS QA Test No. 310
> > #
> > -# Create a file with more than 2^21 extents (the max length of a bmbt record).
> > +# Create a file with more than 2^21 blocks (the max length of a bmbt record).
> > #
> > #-----------------------------------------------------------------------
> > # Copyright (c) 2016, Oracle and/or its affiliates. All Rights Reserved.
> > @@ -75,8 +75,9 @@ mkdir $testdir
> > blksz="$(_get_block_size $testdir)"
> > $XFS_IO_PROG -f -c "falloc 0 $((nr_blks * blksz))" $testdir/file1 >> $seqres.full
> >
> > +# make sure the allocator didn't allocate more than the needed two extents
> > echo "Check extent count"
> > -xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*1:' -q && xfs_bmap -l -p -v $testdir/file1
> > +xfs_bmap -l -p -v $testdir/file1 | grep '^[[:space:]]*2:' -q && xfs_bmap -l -p -v $testdir/file1
> > inum=$(stat -c '%i' $testdir/file1)
> > umount $SCRATCH_MNT
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe fstests" in
> > the body of a message to majordomo@vger.kernel.org
> > 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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs/310: relax extent count check
2017-09-19 2:28 ` Darrick J. Wong
2017-09-19 2:56 ` Eryu Guan
@ 2017-09-19 3:05 ` Christoph Hellwig
1 sibling, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2017-09-19 3:05 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Christoph Hellwig, fstests, Eryu Guan
On Mon, Sep 18, 2017 at 07:28:59PM -0700, Darrick J. Wong wrote:
> On Sun, Sep 03, 2017 at 05:51:01PM +0200, Christoph Hellwig wrote:
> > If we got over the bmbt length we'll always allocate two extents,
> > its just that so far getbmap merged them.
> >
> > Also fix/update some comments.
> >
>
> Needs a s-o-b. Otherwise,
Hmm, didn;t notice I missed that:
Signed-off-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-09-19 3:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-03 15:51 xfs/310: relax extent count check Christoph Hellwig
2017-09-06 7:34 ` Eryu Guan
2017-09-14 4:09 ` Eryu Guan
2017-09-18 21:10 ` Darrick J. Wong
2017-09-18 23:39 ` Christoph Hellwig
2017-09-19 2:28 ` Darrick J. Wong
2017-09-19 2:56 ` Eryu Guan
2017-09-19 3:05 ` Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.