btrfs/139: require 2GB scratch dev
[xfstests-dev.git] / tests / btrfs / 139
index e930d7808c1a109e47cd1bc5fe34d7f77bc12a25..1b636e818fd93298162989e398bc50f6c545df2f 100755 (executable)
@@ -1,4 +1,7 @@
 #! /bin/bash
 #! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 SUSE. All Rights Reserved.
+#
 # FS QA Test 139
 #
 # Check if btrfs quota limits are not reached when you constantly
 # FS QA Test 139
 #
 # Check if btrfs quota limits are not reached when you constantly
@@ -6,24 +9,6 @@
 #
 # Finally we create files to exceed the quota.
 #
 #
 # Finally we create files to exceed the quota.
 #
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 SUSE. All Rights Reserved.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it would be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write the Free Software Foundation,
-# Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-#-----------------------------------------------------------------------
-#
-
 seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
 seq=`basename $0`
 seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
@@ -48,7 +33,8 @@ rm -f $seqres.full
 
 _supported_fs btrfs
 _supported_os Linux
 
 _supported_fs btrfs
 _supported_os Linux
-_require_scratch
+# We at least need 2GB of free space on $SCRATCH_DEV
+_require_scratch_size $((2 * 1024 * 1024))
 
 _scratch_mkfs > /dev/null 2>&1
 _scratch_mount
 
 _scratch_mkfs > /dev/null 2>&1
 _scratch_mount