Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[reiser4] Directory not empty [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Mar 29, 2010 7:07 am    Post subject: [reiser4] Directory not empty [solved] Reply with quote

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
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Mon Mar 29, 2010 9:01 am    Post subject: Reply with quote

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
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Mar 29, 2010 9:11 am    Post subject: Reply with quote

I read about it here: https://forums.gentoo.org/viewtopic-t-282321-start-0.html
and here: http://www.mail-archive.com/reiserfs-list@namesys.com/msg06859.html

both links a quiet old...

I haven't checked fsck yet, but will do so when I get home in about 7 hours :D
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Mon Mar 29, 2010 9:45 am    Post subject: Reply with quote

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
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Mar 29, 2010 9:58 am    Post subject: Reply with quote

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
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Mon Mar 29, 2010 10:06 am    Post subject: Reply with quote

Well if U still can't remove folder it's great :D

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
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Mar 29, 2010 4:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Tue Mar 30, 2010 6:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Fri Apr 16, 2010 12:19 pm    Post subject: Reply with quote

disi wrote:
I read about it here: https://forums.gentoo.org/viewtopic-t-282321-start-0.html
and here: http://www.mail-archive.com/reiserfs-list@namesys.com/msg06859.html

both links a quiet old...


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
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Fri Apr 16, 2010 2:00 pm    Post subject: Reply with quote

I sent an email to the mailinglist:
http://marc.info/?t=126988058500002&r=1&w=2
here is another out of the thread:
http://marc.info/?l=reiserfs-devel&m=126996966028147&w=2

//edit: the version I used to create the filesystem and did the fsck comes from the SystemRescue CD 2009 (I think)

//edit: the mount options are default with notatime
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum