* weird ENOSPC with defragment directory
@ 2010-08-17 3:15 Jon Nelson
2010-08-17 3:20 ` Jon Nelson
0 siblings, 1 reply; 2+ messages in thread
From: Jon Nelson @ 2010-08-17 3:15 UTC (permalink / raw)
To: linux-btrfs
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_64
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 32 Aug 13 17:13 .
drwxr-x--- 1 squid nogroup 1024 Jun 4 18:35 ..
-rw-r----- 1 squid nogroup 1777 Jul 13 22:31 00019321
-rw-r----- 1 squid nogroup 537 Jul 13 22:31 00019378
turnip:~ #
That seems... strange.
--
Jon
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: weird ENOSPC with defragment directory
2010-08-17 3:15 weird ENOSPC with defragment directory Jon Nelson
@ 2010-08-17 3:20 ` Jon Nelson
0 siblings, 0 replies; 2+ messages in thread
From: Jon Nelson @ 2010-08-17 3:20 UTC (permalink / raw)
To: linux-btrfs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-17 3:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 3:15 weird ENOSPC with defragment directory Jon Nelson
2010-08-17 3:20 ` Jon Nelson
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).