mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
d0a3cc5af8
xfs/104, xfs/119, xfs/291 and xfs/297 have small fixed log sizes. A recent change to the kernel ramdisk changed it's physical sector size from 512B to 4kB, and this results in mkfs calculating a log size larger than the fixed test size and hence the tests fail. Change the log size to a larger size that works with 4k sectors, and also increase the size of the filesystem being created so that the amount of data space in the filesystem does not change and hence does not perturb the rest of the test. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
77 lines
1.7 KiB
Bash
Executable File
77 lines
1.7 KiB
Bash
Executable File
#! /bin/bash
|
|
# FS QA Test No. 119
|
|
#
|
|
# Leaking reservation space in the GRH
|
|
# Test out pv#942130
|
|
# This can hang when things aren't working
|
|
#
|
|
#-----------------------------------------------------------------------
|
|
# Copyright (c) 2000-2005 Silicon Graphics, Inc. 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"
|
|
|
|
here=`pwd`
|
|
tmp=/tmp/$$
|
|
status=1 # failure is the default!
|
|
trap "_cleanup; exit \$status" 0 1 2 3 15
|
|
|
|
_cleanup()
|
|
{
|
|
cd /
|
|
rm -f $tmp.*
|
|
}
|
|
|
|
# get standard environment, filters and checks
|
|
. ./common/rc
|
|
. ./common/filter
|
|
|
|
# real QA test starts here
|
|
|
|
# Modify as appropriate.
|
|
_supported_fs xfs
|
|
_supported_os IRIX Linux
|
|
|
|
_require_scratch
|
|
|
|
# this may hang
|
|
sync
|
|
|
|
export MKFS_OPTIONS="-l version=2,size=2560b,su=64k"
|
|
export MOUNT_OPTIONS="-o logbsize=64k"
|
|
_scratch_mkfs_xfs >/dev/null
|
|
|
|
_scratch_mount
|
|
|
|
max=99
|
|
i=0
|
|
echo "start freezing and unfreezing"
|
|
while [ $i -lt $max ]; do
|
|
xfs_freeze -f $SCRATCH_MNT
|
|
xfs_freeze -u $SCRATCH_MNT
|
|
echo -n .
|
|
let i=$i+1
|
|
done
|
|
echo "done"
|
|
|
|
# success, all done
|
|
status=0
|
|
exit
|