From: Hugo Mills <hugo@carfax.org.uk>
To: Martin Steigerwald <Martin@lichtvoll.de>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: BTRFS claims that empty directory is not empty and refuses to delete it
Date: Tue, 15 Jul 2014 11:01:25 +0100 [thread overview]
Message-ID: <20140715100125.GA4834@carfax.org.uk> (raw)
In-Reply-To: <5988448.153L8540y0@merkaba>
[-- Attachment #1: Type: text/plain, Size: 1717 bytes --]
On Tue, Jul 15, 2014 at 11:09:53AM +0200, Martin Steigerwald wrote:
> Hello!
>
> This is with 3.16-rc4 – stepped back to this one after having two hangs in one
> day with 3.16-rc5, see other thread started by me:
>
> martin@merkaba:~/Zeit/undeletable/db_data> ls -lid akonadi
> 450598 drwx------ 1 martin martin 1232 Jun 22 14:11 akonadi
> martin@merkaba:~/Zeit/undeletable/db_data> ls -lai akonadi
> insgesamt 0
> 450598 drwx------ 1 martin martin 1232 Jun 22 14:11 .
> 450595 drwxr-xr-x 1 martin martin 14 Jun 22 14:11 ..
> martin@merkaba:~/Zeit/undeletable/db_data> LANG=C rmdir akonadi
> rmdir: failed to remove 'akonadi': Directory not empty
> martin@merkaba:~/Zeit/undeletable/db_data#1> LANG=C rm -r akonadi
> rm: cannot remove 'akonadi': Directory not empty
> martin@merkaba:~/Zeit/undeletable/db_data#1> LANG=C rm -rf akonadi
> rm: cannot remove 'akonadi': Directory not empty
> martin@merkaba:~/Zeit/undeletable/db_data#1>
>
>
> Whats this?
>
> I had this weeks ago already and just moved it out of the way at that time,
> just now stumbled upon it again.
That is symptomatic of a bug from a couple of kernel versions ago
(now fixed, so it won't happen again). It it is that bug, then btrfs
check will report something along the lines of "directory isize
wrong", and the problem can be fixed by running a btrfs check
--repair. If you get anything else from btrfs check (or it checks
cleanly), then let us know first.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- If you see something, say nothing and drink to forget ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
next prev parent reply other threads:[~2014-07-15 10:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-15 9:09 BTRFS claims that empty directory is not empty and refuses to delete it Martin Steigerwald
2014-07-15 9:25 ` Torbjørn
2014-07-15 9:43 ` Martin Steigerwald
2014-07-15 10:01 ` Hugo Mills [this message]
2014-08-27 10:00 ` Martin Steigerwald
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=20140715100125.GA4834@carfax.org.uk \
--to=hugo@carfax.org.uk \
--cc=Martin@lichtvoll.de \
--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).