From: Eric Sandeen <sandeen@sandeen.net>
To: Xiao Yang <yangx.jy@cn.fujitsu.com>, Eryu Guan <eguan@redhat.com>
Cc: fstests <fstests@vger.kernel.org>, Zorro Lang <zlang@redhat.com>
Subject: Re: [PATCH V2] xfs/289: test fragmented multi-fsb readdir
Date: Thu, 18 May 2017 22:30:25 -0500 [thread overview]
Message-ID: <a511db57-db7f-6a7c-39ea-e6d3b003970c@sandeen.net> (raw)
In-Reply-To: <591E5BEB.5070008@cn.fujitsu.com>
On 5/18/17 9:43 PM, Xiao Yang wrote:
> Hi Eric and Eryu
>
> I tested it on RHE7.3GA and RHEL7.4Alpha, i got ENOSPC error instead of hang. Is it expected behavior?
>
> Please see the following detailed message:
> =================================================================================
> [root@RHEL7U4Alpha_Intel64 xfstests]# ./check xfs/294
> FSTYP -- xfs (non-debug)
> PLATFORM -- Linux/x86_64 RHEL7U4Alpha_Intel64 3.10.0-657.el7.x86_64
> MKFS_OPTIONS -- -f -bsize=4096 /dev/sda11
> MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /dev/sda11 /mnt/xfstests/scratch
>
> xfs/294 10s ... - output mismatch (see /var/lib/xfstests/results//xfs/294.out.bad)
> --- tests/xfs/294.out 2017-05-19 10:39:31.798010275 +0800
> +++ /var/lib/xfstests/results//xfs/294.out.bad 2017-05-19 10:40:02.112008755 +0800
> @@ -1,2 +1,1234 @@
> QA output created by 294
> -23accd029fad51ec02e4ec1f24799878 -
> +touch: cannot touch '/mnt/xfstests/scratch/testdir/12345678901234567890169': No space left on device
> +touch: cannot touch '/mnt/xfstests/scratch/testdir/12345678901234567890170': No space left on device
> +touch: cannot touch '/mnt/xfstests/scratch/testdir/12345678901234567890171': No space left on device
> +touch: cannot touch '/mnt/xfstests/scratch/testdir/12345678901234567890172': No space left on device
> +touch: cannot touch '/mnt/xfstests/scratch/testdir/12345678901234567890173': No space left on device
> ...
> (Run 'diff -u tests/xfs/294.out /var/lib/xfstests/results//xfs/294.out.bad' to see the entire diff)
That's an odd failure; I wrote the test for upstream...
On that kernel, despite free inodes:
# df -i /mnt/scratch
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/loop1 10260 490 9770 5% /mnt/scratch
and xfs_db concurs (more or less?):
icount = 10240
ifree = 9750
creating a new inode fails:
# touch /mnt/scratch/testdir/12345678901234567890169
touch: cannot touch ‘/mnt/scratch/testdir/12345678901234567890169’: No space left on device
Everything about the fs looks the same as if we run it upstream, including
the reserved blocks:
reserved blocks = 6553
available reserved blocks = 6553
But, it's failing to allocate the space:
touch-12302 [005] d... 118038.499302: ret_xfs_mod_fdblocks: (xfs_trans_reserve+0x123/0x200 [xfs] <- xfs_mod_fdblocks) arg1=0xffffffe4
(arg1 is the return value, -ENOSPC)
It's not clear to me at this point why we can't create another inode on this fs.
-Eric
next prev parent reply other threads:[~2017-05-19 3:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-13 20:28 [PATCH] xfs/288: test fragmented multi-fsb readdir Eric Sandeen
2017-04-13 22:34 ` Darrick J. Wong
2017-04-13 22:41 ` Eric Sandeen
2017-04-13 22:49 ` Eric Sandeen
2017-04-14 3:50 ` Eryu Guan
2017-05-04 0:21 ` [PATCH V2] xfs/289: " Eric Sandeen
2017-05-19 2:43 ` Xiao Yang
2017-05-19 3:30 ` Eric Sandeen [this message]
2017-05-19 16:39 ` Eric Sandeen
2017-05-20 2:25 ` Eric Sandeen
2017-06-15 8:12 ` Xiao Yang
2017-06-15 14:19 ` Eric Sandeen
2017-06-15 16:30 ` Darrick J. Wong
2017-06-15 16:41 ` Eric Sandeen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a511db57-db7f-6a7c-39ea-e6d3b003970c@sandeen.net \
--to=sandeen@sandeen.net \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=yangx.jy@cn.fujitsu.com \
--cc=zlang@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox