]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/204: use available blocks to determine the number of files to create
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 7 Nov 2017 01:54:11 +0000 (17:54 -0800)
committerEryu Guan <eguan@redhat.com>
Fri, 10 Nov 2017 04:33:58 +0000 (12:33 +0800)
commit1e24e5173efa09c9f2dea17ffd7d344f48f77fc9
treedb485aefc5750549c077c5552b57f6561c861799
parenta9df2f23dfc88e453932fd4af439a9e70c8cda56
generic/204: use available blocks to determine the number of files to create

Use the available block count to compute the number of files we think
we can create, rather than hardcoding a particular size.  This fixes
the ENOSPC failures for xfs filesystems with rmap/reflink support.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/204