linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jon Nelson <jnelson@jamponi.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: weird ENOSPC with defragment directory
Date: Mon, 16 Aug 2010 22:20:43 -0500	[thread overview]
Message-ID: <AANLkTinpV9fT3GUuuKC--VpPABERBHx7Xf5fCJSrFRUL@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikgGCOfZo1A-R6bX+XXcAfCz48SDwX_0yhvUeJx@mail.gmail.com>

On Mon, Aug 16, 2010 at 10:15 PM, Jon Nelson <jnelson@jamponi.net> wrot=
e:
> Most other directories on /var/cache, *except* those created by squid=
,
> can be defragmented.
> The filesystem was converted from ext3/4.
>
> turnip:~ # uname -a
> Linux turnip 2.6.34-12-default #1 SMP 2010-06-29 02:39:08 +0200 x86_6=
4
> x86_64 x86_64 GNU/Linux
>
> (stock openSUSE 11.3 kernel)
>
> turnip:~ btrfsctl -d /var/cache/squid/01/93
> ioctl:: No space left on device
> turnip:~ # find !$
> find /var/cache/squid/01/93
> /var/cache/squid/01/93
> /var/cache/squid/01/93/00019321
> /var/cache/squid/01/93/00019378
> turnip:~ # ls -la !$
> ls -la /var/cache/squid/01/93
> total 2
> drwxr-x--- 1 squid nogroup =C2=A0 32 Aug 13 17:13 .
> drwxr-x--- 1 squid nogroup 1024 Jun =C2=A04 18:35 ..
> -rw-r----- 1 squid nogroup 1777 Jul 13 22:31 00019321
> -rw-r----- 1 squid nogroup =C2=A0537 Jul 13 22:31 00019378
> turnip:~ #
>
> That seems... strange.

It gets stranger. If I issue a 'sync' command, chances are the
defragment command will work. If I issue a bunch of them (in series,
however), then I get ENOSPC.

find /var/cache -xdev -type d -exec btrfsprogs -d {} \;

Seems to do it every time, with or without -depth. I get 100% success
and then 100% failure - no mixing.

--=20
Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2010-08-17  3:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-17  3:15 weird ENOSPC with defragment directory Jon Nelson
2010-08-17  3:20 ` Jon Nelson [this message]

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=AANLkTinpV9fT3GUuuKC--VpPABERBHx7Xf5fCJSrFRUL@mail.gmail.com \
    --to=jnelson@jamponi.net \
    --cc=linux-btrfs@vger.kernel.org \
    /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).