xfs: fix tests to handle removal of no-alloc create nonfeature
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 13 Dec 2017 22:45:01 +0000 (14:45 -0800)
committerEryu Guan <eguan@redhat.com>
Fri, 15 Dec 2017 07:16:46 +0000 (15:16 +0800)
commitd69d223dfa90493377f957acf0be92b1033f43db
treeac2063c1a86033972fa20325376918a73bdb3188
parent88b65cf51e823043abdcc1546f98f694e437ed3c
xfs: fix tests to handle removal of no-alloc create nonfeature

We're removing from XFS the ability to perform no-allocation file
creation.  This was added years ago because some customer of SGI
demanded that we still be able to create (empty?) files with zero
free blocks remaining so long as there were free inodes and space in
existing directory blocks.  This came at an unacceptable risk of
ENOSPC'ing midway through a transaction and shutting down the fs, so
we're removing it for the create case having changed our minds 20
years later.

However, some tests fail as a result, so fix them to be more
flexible about not failing when a dir/file creation fails due to
ENOSPC.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/013
tests/xfs/014
tests/xfs/104
tests/xfs/109