reiser4 - Non-removable files in lost+found
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/
Quoted 29 lines · On Thursday 14 October 2004 21:08, [email protected] 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?\tv\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?\tv\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
Quoted 8 lines
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?
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 8 lines
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
Quoted 6 lines · Michael Weissenbacher
Quoted 6 lines
rm /lost+found/lost_name_*
gives:
rm: cannot remove `/lost+found/lost_name_5447b:6b68746d6c6361:27e2e2r?\t
Quoted 8 lines
Quoted 2 lines
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...
plugin/hash/r5_hash/r5_hash.c renamed from plugin/hash/r5_hash/r5_hash.c.orig +4 -2
@@ -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 ; }
Quoted 10 lines · Michael Weissenbacher
Quoted 9 lines
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
Quoted 5 lines
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.
Signature · 2 lines
Thanks, Vitaly Fertman