View previous topic :: View next topic |
Author |
Message |
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Mon Mar 29, 2010 7:07 am Post subject: [reiser4] Directory not empty [solved] |
|
|
I have a weird problem
OK, I read about the bug, that sometimes the filesystem gets corrupted and then this error occurs. Here is what happened:
emerge left some uncompiled stuff in /var/tmp/portage
So I went in there and run rm -rf *
It came up with "folder is not empty" (some .../java/devel/locale... subfolder)
I can go down to that folder and still cannot delete it (rm -r or rmdir), even though it's totally empty.
What I did as a workaround, moved this "locale" folder into my /root and then I was able to delete the folder in /vat/tmp/portage
I read that I should do a fsck on the filesystem, which I'll try later...
To prevent this from happening in the future, do you think tmpfs is the better choice for /vat/tmp?
//edit: What I don't get is: I can move the inode around in the index of the filesystem, why can I not unlink it? _________________ Gentoo on Uptime Project - Larry is a cow
Last edited by disi on Mon Mar 29, 2010 4:38 pm; edited 1 time in total |
|
Back to top |
|
|
dusanc Apprentice
Joined: 19 Sep 2005 Posts: 248 Location: Serbia
|
Posted: Mon Mar 29, 2010 9:01 am Post subject: |
|
|
Dunno
Where have you found reports of this bug? I can't find it.
What did fsck say? _________________ Reiser4 Gentoo FAQ [25Dec2016] |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
|
Back to top |
|
|
dusanc Apprentice
Joined: 19 Sep 2005 Posts: 248 Location: Serbia
|
Posted: Mon Mar 29, 2010 9:45 am Post subject: |
|
|
Would be nice to make that bug reproducible, but how?
If u can reproduce it again, please report it to R4 mailing list.
We'll see what fsck tells us _________________ Reiser4 Gentoo FAQ [25Dec2016] |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Mon Mar 29, 2010 9:58 am Post subject: |
|
|
Well, I still have the folder in /root and i can still not remove it. Is there any information you need, except of fsck output?
I actual haven't checked for any immutable attribute ^^ _________________ Gentoo on Uptime Project - Larry is a cow |
|
Back to top |
|
|
dusanc Apprentice
Joined: 19 Sep 2005 Posts: 248 Location: Serbia
|
Posted: Mon Mar 29, 2010 10:06 am Post subject: |
|
|
Well if U still can't remove folder it's great
Ask on mailing list, with usual data like what kernel you're using and mountoptions.
Maybe some old bug is back _________________ Reiser4 Gentoo FAQ [25Dec2016] |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Mon Mar 29, 2010 4:25 pm Post subject: |
|
|
After fsck.reiser4 --fix /dev/sda3 problem is solved, here is the relevant output:
Code: | disi-laptop ~ # uname -a
Linux disi-laptop 2.6.33-zen1 #3 ZEN SMP Sat Mar 27 17:00:34 GMT 2010 i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux
disi-laptop ~ # mkfs.reiser4 --version
mkfs.reiser4 1.0.7
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by reiser4progs/COPYING.
disi-laptop ~ # ls
locale xorg.conf.new
disi-laptop ~ # ls -l
total 5
drwx------ 2 root root 4 Mar 27 15:35 locale
-rw-r--r-- 1 root root 3944 Mar 27 15:05 xorg.conf.new
disi-laptop ~ # man ls
disi-laptop ~ # ls -li
total 5
509520 drwx------ 2 root root 4 Mar 27 15:35 locale
1584446 -rw-r--r-- 1 root root 3944 Mar 27 15:05 xorg.conf.new
disi-laptop ~ # mv locale locale_moved
disi-laptop ~ # ls -li
total 5
509520 drwx------ 2 root root 4 Mar 29 16:58 locale_moved
1584446 -rw-r--r-- 1 root root 3944 Mar 27 15:05 xorg.conf.new
disi-laptop ~ # rm -rf locale_moved/
rm: cannot remove `locale_moved': Directory not empty
disi-laptop ~ # ls -lai locale_moved/
total 1
509520 drwx------ 2 root root 4 Mar 29 16:58 .
99103 drwx------ 3 root root 9 Mar 29 16:58 ..
disi-laptop ~ # rmdir locale_moved/
rmdir: failed to remove `locale_moved/': Directory not empty
fsck_sda3.log:
FSCK: obj40_repair.c: 223: obj40_stat_unix_check: Node (411349), item (3),
[7c641:6c6f63616c6500:7c650] (stat40): wrong bytes (264), Fixed to (100).
FSCK: obj40_repair.c: 350: obj40_stat_lw_check: Node (411349), item (3),
[7c641:6c6f63616c6500:7c650] (stat40): wrong size (4), Fixed to (2).
disi-laptop ~ # ls
locale_moved xorg.conf.new
disi-laptop ~ # ls -li
total 5
509520 drwx------ 2 root root 2 Mar 29 16:58 locale_moved
1584446 -rw-r--r-- 1 root root 3944 Mar 27 15:05 xorg.conf.new
disi-laptop ~ # mv locale_moved locale
disi-laptop ~ # ls -li
total 5
509520 drwx------ 2 root root 2 Mar 29 17:20 locale
1584446 -rw-r--r-- 1 root root 3944 Mar 27 15:05 xorg.conf.new
disi-laptop ~ # rm -r locale
disi-laptop ~ # ls -li
total 4
1584446 -rw-r--r-- 1 root root 3944 Mar 27 15:05 xorg.conf.new |
mount options:
Code: | /dev/root on / type reiser4 (rw,noatime,atom_max_size=0xdc11,atom_max_age=0x927c0,atom_min_size=0x100,atom_max_flushers=0x1,cbk_cache_slots=0x10) |
_________________ Gentoo on Uptime Project - Larry is a cow |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Tue Mar 30, 2010 6:11 am Post subject: |
|
|
reproduceable:
Code: | disi-laptop portage # rm -r *
rm: cannot remove `sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/classpath/resource/gnu/java/locale': Directory not empty |
_________________ Gentoo on Uptime Project - Larry is a cow |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Fri Apr 16, 2010 12:19 pm Post subject: |
|
|
reiser4progs-0.1.0 (builded w/gcc-3.1.1) WTF, you're not joking , just look at R4 revision that was based on ! It was still in alpha at that stage.
Are you saying that after the fsck this came back?
If so how about some more detail :exactly what you have to do to reproduce it.
I had one such dead file years ago on R4 but have not seen it since I did fsck ( and 3/4 of my gentoo box is R4 partitions. )
BTW I use sane mount options.
/dev/hda11 on / type reiser4 (rw,noatime,nodiratime)
What is the aim of the options you use? _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
|
Back to top |
|
|
|