| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 01/20] xfs/104: don't enospc when ag metadata overhead grows |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Thu, 16 Jun 2016 18:46:08 -0700 |
| Cc: | linux-btrfs@xxxxxxxxxxxxxxx, fstests@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <146612796204.25024.18254357523133394284.stgit@xxxxxxxxxxxxxxxx> |
| References: | <146612796204.25024.18254357523133394284.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
Adapt to different metadata overhead sizes by trying to reserve
decreasing amounts of disk space until we actually succeed at it.
Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
---
tests/xfs/104 | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/xfs/104 b/tests/xfs/104
index 17f9b62..785027e 100755
--- a/tests/xfs/104
+++ b/tests/xfs/104
@@ -88,9 +88,14 @@ sizeb=`expr $size / $dbsize` # in data blocks
echo "*** creating scratch filesystem"
_create_scratch -lsize=10m -dsize=${size} -dagcount=${nags}
-fillsize=`expr 110 \* 1048576` # 110 megabytes of filling
echo "*** using some initial space on scratch filesystem"
-_fill_scratch $fillsize
+for i in `seq 125 -1 90`; do
+ fillsize=`expr $i \* 1048576`
+ out="$(_fill_scratch $fillsize 2>&1)"
+ echo "$out" | grep -q 'No space left on device' && continue
+ test -n "${out}" && echo "$out"
+ break
+done
#
# Grow the filesystem while actively stressing it...
|
| Previous by Date: | [PATCH 145/145] xfs_scrub: create online filesystem scrub program, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 02/20] tests: don't put loop control files on the scratch mount, Darrick J. Wong |
| Previous by Thread: | [PATCH v6 00/20] xfstests: minor fixes for the reflink/dedupe tests, Darrick J. Wong |
| Next by Thread: | [PATCH 02/20] tests: don't put loop control files on the scratch mount, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |