linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: "Hongzhi, Song" <hongzhi.song@windriver.com>
Cc: ltp@lists.linux.it, linux-btrfs@vger.kernel.org
Subject: Re: Bug Report: fs_fill: fails on btrfs with "ENOSPC" when disk size = 512M
Date: Wed, 26 Jun 2019 13:36:29 +0200	[thread overview]
Message-ID: <20190626113629.GA13189@rei.lan> (raw)
In-Reply-To: <a361073f-3fbd-13af-b688-01da6b443b22@windriver.com>

Hi!
Not being able to delete a file on a filled filesystem sounds like a
filesystem bug to me. CCying Btrfs mailing list.

>       Description:
> 
> fs_fill fails on Btrfs when /dev/loop//*size = 512M*/.
> I tested other size, 256M 1G, all passed.
> 
> 
>       Kernel:
> 
> v5.2-rc1, qemux86-64
> 
> |# make -j40 ARCH=x86_64 CROSS_COMPILE=x86-64-gcc use qemu to bootup kernel |
> 
> 
>       LTP:
> 
> master branch: date 20190625
> 
> 
>       Reproduce:
> 
> |build ltp source and cp ltp all outputs to qemu # vi runltp in 
> function: create_block() dd if=/dev/zero of=${TMP}/test.img bs=1024 
> count=262144 ---> dd if=/dev/zero of=${TMP}/test.img bs=1024 
> count=524288 # runltp -f fs -s fs_fill |
> 
> 
>       Issue:
> 
> The issue maybe not reproduced everytime but four fifths chance.
> 
> |safe_macros.c:358: BROK: fs_fill.c:67: unlink(mntpoint/thread9/file0) 
> failed: ENOSPC safe_macros.c:358: BROK: fs_fill.c:67: 
> unlink(mntpoint/thread4/file0) failed: ENOSPC [ 154.762502] BTRFS 
> warning (device loop0): could not allocate space for a delete; will 
> truncate on mount [ 155.691577] BTRFS warning (device loop0): could not 
> allocate space for a delete; will truncate on mount [ 156.017697] BTRFS 
> warning (device loop0): could not allocate space for a delete; will 
> truncate on mount |
> 
> 
>       Analysis:
> 
> One new kernel commit contained in v5.2-rc1 introduces the issue.
> 
> |commit c8eaeac7b734347c3afba7008b7af62f37b9c140 Author: Josef Bacik 
> <josef@toxicpanda.com> Date: Wed Apr 10 15:56:10 2019 -0400 btrfs: 
> reserve delalloc metadata differently ...|
> 
> 
> Anyone's reply will be appreciated.
> 
> --Hongzhi
> 
> ||

-- 
Cyril Hrubis
chrubis@suse.cz

           reply	other threads:[~2019-06-26 11:36 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <a361073f-3fbd-13af-b688-01da6b443b22@windriver.com>]

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=20190626113629.GA13189@rei.lan \
    --to=chrubis@suse.cz \
    --cc=hongzhi.song@windriver.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=ltp@lists.linux.it \
    /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;
as well as URLs for NNTP newsgroup(s).