All of lore.kernel.org
 help / color / mirror / Atom feed
* reiser4 - Non-removable files in lost+found
@ 2004-10-14 17:08 frbiscani
  2004-10-14 18:42 ` Vitaly Fertman
  2004-10-15  8:07 ` Michael Weissenbacher
  0 siblings, 2 replies; 9+ messages in thread
From: frbiscani @ 2004-10-14 17:08 UTC (permalink / raw)
  To: reiserfs-list

After a reiser4 crash I had to run fsck with the --build-fs option. Some

garbage was collected in /lost+found. I deleted it for the most part, but

there are "files" I can't remove.

For example:

rm /lost+found/lost_name_*

gives:

rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e2e2r?\t

v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
file
or directory
rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e2f3r?\t

v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
file
or directory
rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e306r?\t

v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
file
or directory
rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e310r?\t

v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
file
or directory
[...]

and so on. I've tried also "rm -d" and unlink, but with no luck. Is there
a
way to clean up (apart from mkfs :))?

Thanks,

francesco


________________________________________
Crea la tshirt con il tuo nick! http://www.mediasetshop.it/JumpyChat/



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: reiser4 - Non-removable files in lost+found
  2004-10-14 17:08 frbiscani
@ 2004-10-14 18:42 ` Vitaly Fertman
  2004-10-15  8:07 ` Michael Weissenbacher
  1 sibling, 0 replies; 9+ messages in thread
From: Vitaly Fertman @ 2004-10-14 18:42 UTC (permalink / raw)
  To: frbiscani, reiserfs-list

On Thursday 14 October 2004 21:08, frbiscani@jumpy.it wrote:
> After a reiser4 crash I had to run fsck with the --build-fs option. Some
>
> garbage was collected in /lost+found. I deleted it for the most part, but
>
> there are "files" I can't remove.
>
> For example:
>
> rm /lost+found/lost_name_*
>
> gives:
>
> rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e2e2r?\t
>
> v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
> file
> or directory
> rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e2f3r?\t
>
> v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
> file
> or directory
> rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e306r?\t
>
> v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
> file
> or directory
> rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e310r?\t
>
> v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
> file
> or directory
> [...]
>
> and so on. I've tried also "rm -d" and unlink, but with no luck. Is there
> a
> way to clean up (apart from mkfs :))?

would you pack the metadata with:
	debugfs.reiser4 -P /dev/xxx | bzip2 -c > xxx.bz2
and provide it to me for downloading?

-- 
Thanks,
Vitaly Fertman


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: reiser4 - Non-removable files in lost+found
  2004-10-14 17:08 frbiscani
  2004-10-14 18:42 ` Vitaly Fertman
@ 2004-10-15  8:07 ` Michael Weissenbacher
  2004-10-15  8:11   ` Michael Weissenbacher
  2004-10-15 12:29   ` Vitaly Fertman
  1 sibling, 2 replies; 9+ messages in thread
From: Michael Weissenbacher @ 2004-10-15  8:07 UTC (permalink / raw)
  To: frbiscani, ReiserFS List

> rm /lost+found/lost_name_*
> 
> gives:
> 
> rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e2e2r?\t
> 
> v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
> file 
> or directory
had the same problem, it is related to fsck which computes hashes the 
wrong way if filenames are too long (and/or contain non-ascii 
characters). vladimir sent a patch to the mailing list that corrected 
this bug for me. not sure if this is already available in the 
pre-version of reiser4progs.

regards,
michael

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: reiser4 - Non-removable files in lost+found
  2004-10-15  8:07 ` Michael Weissenbacher
@ 2004-10-15  8:11   ` Michael Weissenbacher
  2004-10-15 12:29   ` Vitaly Fertman
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Weissenbacher @ 2004-10-15  8:11 UTC (permalink / raw)
  To: ReiserFS List

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

Michael Weissenbacher wrote:
>> rm /lost+found/lost_name_*
>>
>> gives:
>>
>> rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e2e2r?\t
>>
>> v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
>> file or directory
> 
> had the same problem, it is related to fsck which computes hashes the 
> wrong way if filenames are too long (and/or contain non-ascii 
> characters). vladimir sent a patch to the mailing list that corrected 
> this bug for me. not sure if this is already available in the 
> pre-version of reiser4progs.
> 
> regards,
> michael
> 
here's the patch...

[-- Attachment #2: r5_hash.c.diff --]
[-- Type: text/x-patch, Size: 487 bytes --]

--- reiser4progs-1.0.0/plugin/hash/r5_hash/r5_hash.c.orig	2004-08-31 18:48:01.749889832 +0400
+++ reiser4progs-1.0.0/plugin/hash/r5_hash/r5_hash.c	2004-08-31 18:46:08.864051088 +0400
@@ -9,10 +9,12 @@
 uint64_t r5_hash_build(char *name, uint32_t len) {
 	uint32_t i;
 	uint64_t a = 0;
+	unsigned char *uname;
 	
+	uname = (unsigned char *)name;
 	for (i = 0; i < len; i++) {
-		a += name[i] << 4;
-		a += name[i] >> 4;
+		a += uname[i] << 4;
+		a += uname[i] >> 4;
 		a *= 11;
 	}
     

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: reiser4 - Non-removable files in lost+found
  2004-10-15  8:07 ` Michael Weissenbacher
  2004-10-15  8:11   ` Michael Weissenbacher
@ 2004-10-15 12:29   ` Vitaly Fertman
  1 sibling, 0 replies; 9+ messages in thread
From: Vitaly Fertman @ 2004-10-15 12:29 UTC (permalink / raw)
  To: Michael Weissenbacher, frbiscani, ReiserFS List

On Friday 15 October 2004 12:07, Michael Weissenbacher wrote:
> > rm /lost+found/lost_name_*
> >
> > gives:
> >
> > rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e2e2r?\t
> >
> > v\310:H\327\377\257O\275\275: v\310:\200r?\t@\001\261:\200r?\t': No such
> > file
> > or directory
>
> had the same problem, it is related to fsck which computes hashes the
> wrong way if filenames are too long (and/or contain non-ascii
> characters). vladimir sent a patch to the mailing list that corrected
> this bug for me. not sure if this is already available in the
> pre-version of reiser4progs.

yes, the fix is included into reiser4progs-1.0.2-pre1.

-- 
Thanks,
Vitaly Fertman


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: reiser4 - Non-removable files in lost+found
@ 2004-10-18 13:50 frbiscani
  2004-10-18 16:30 ` Michael Weissenbacher
  2004-10-18 16:41 ` Adrian Ulrich
  0 siblings, 2 replies; 9+ messages in thread
From: frbiscani @ 2004-10-18 13:50 UTC (permalink / raw)
  To: Vitaly Fertman; +Cc: Michael Weissenbacher, ReiserFS List

Sorry for the mail-mess... I hate webmail :/

On Friday 15 October 2004 14:29, Vitaly Fertman wrote:
> On Friday 15 October 2004 12:07, Michael Weissenbacher wrote:
> >
> > had the same problem, it is related to fsck which computes hashes the
> > wrong way if filenames are too long (and/or contain non-ascii
> > characters). vladimir sent a patch to the mailing list that corrected
> > this bug for me. not sure if this is already available in the
> > pre-version of reiser4progs.
>
> yes, the fix is included into reiser4progs-1.0.2-pre1.

Thank you all for the feedback. I installed reiser4progs-1.0.2-pre1 and
it
found the same number of corruptions as the number of undeletable files

in /lost+found. Should I run fsck with --build-fs then? Also, can this be

done when the partition is mounted read-only? I'm asking this because I
have to run reiser4progs from a chrooted environment where my / partition
is mounted read-only.

Thanks again,

  Francesco

________________________________________
Crea la tshirt con il tuo nick! http://www.mediasetshop.it/JumpyChat/



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: reiser4 - Non-removable files in lost+found
  2004-10-18 13:50 reiser4 - Non-removable files in lost+found frbiscani
@ 2004-10-18 16:30 ` Michael Weissenbacher
  2004-10-18 16:41 ` Adrian Ulrich
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Weissenbacher @ 2004-10-18 16:30 UTC (permalink / raw)
  To: frbiscani; +Cc: Vitaly Fertman, ReiserFS List

> in /lost+found. Should I run fsck with --build-fs then? Also, can this be
short answer: yes, this "renamed" the files in lost+found (in my case) 
so that i could delete them.

regards,
michael

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: reiser4 - Non-removable files in lost+found
  2004-10-18 16:41 ` Adrian Ulrich
@ 2004-10-18 16:33   ` E.Gryaznova
  0 siblings, 0 replies; 9+ messages in thread
From: E.Gryaznova @ 2004-10-18 16:33 UTC (permalink / raw)
  To: Adrian Ulrich; +Cc: reiserfs-list

Adrian Ulrich wrote:

>>Also, can this be done when the partition is mounted read-only? 
>>    
>>
>
>I did this some months ago and my kernel gave me a nice Oops ;-)
>
>Nikita told me on #reiser4 that it isn't possible to fsck a (ro)-mounted
>Filesystem..
>
>Maybe this changed and it's possible now..
>  
>
no, this does not work properly still.

Thanks,
Lena

>bye
>
>
>  
>



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: reiser4 - Non-removable files in lost+found
  2004-10-18 13:50 reiser4 - Non-removable files in lost+found frbiscani
  2004-10-18 16:30 ` Michael Weissenbacher
@ 2004-10-18 16:41 ` Adrian Ulrich
  2004-10-18 16:33   ` E.Gryaznova
  1 sibling, 1 reply; 9+ messages in thread
From: Adrian Ulrich @ 2004-10-18 16:41 UTC (permalink / raw)
  To: reiserfs-list

> Also, can this be done when the partition is mounted read-only? 

I did this some months ago and my kernel gave me a nice Oops ;-)

Nikita told me on #reiser4 that it isn't possible to fsck a (ro)-mounted
Filesystem..

Maybe this changed and it's possible now..

bye

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-10-18 16:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-18 13:50 reiser4 - Non-removable files in lost+found frbiscani
2004-10-18 16:30 ` Michael Weissenbacher
2004-10-18 16:41 ` Adrian Ulrich
2004-10-18 16:33   ` E.Gryaznova
  -- strict thread matches above, loose matches on Subject: below --
2004-10-14 17:08 frbiscani
2004-10-14 18:42 ` Vitaly Fertman
2004-10-15  8:07 ` Michael Weissenbacher
2004-10-15  8:11   ` Michael Weissenbacher
2004-10-15 12:29   ` Vitaly Fertman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.