Re: [reiserfs-list] can't delete files with extra characters

2001-07-16 Thread Nikita Danilov

Marc Dietrich writes:
  
  Hi,
  
  I have a problem deleting files witch contain 'special' characters:
  ok - the whole story:
- I want to migrade a NT server to Samba with ReiserFS :)
- I mounted the ntfs partition _without_ using a special codepage
- thus, linux created files containing umlaute äöü... to some special 
  characters, witch looks like boxes.
- later I recogniced my fault an mounted the ntfs partition with codepage 
  iso8859-15.
- now all umlaut-files where created right.
- problem is now, that I can't delete the old files with the special 
  characters. ReiserFS don't print them out via 'ls' nor I can't delete a 
  directory containing these files.
- I made a reiserfsck -xo --rebuild-tree, but this didn't help

You mean you have copied files from NTFS to reiserfs?
Haven't you applied recent Jeff Mahoney's patches?

  
  System: SuSE 7.2, Kernel SuSE 2.4.4-28
  Errormessage from rm: cannot remove `D\201nn.OPJ': No such file or directory 
  (meaning Dünn.OPJ, or Duuml;nn.OPJ
  
  Greetings Marc

Nikita.



Re: [reiserfs-list] can't delete files with extra characters

2001-07-16 Thread Marc Dietrich

Hello,


Am Montag, 16. Juli 2001 13:10 schrieb Nikita Danilov:

 Marc Dietrich writes:
   Hi,
  
   I have a problem deleting files witch contain 'special' characters:
   ok - the whole story:
 - I want to migrade a NT server to Samba with ReiserFS :)
 - I mounted the ntfs partition _without_ using a special codepage
 - thus, linux created files containing umlaute äöü... to some
   special characters, witch looks like boxes.
 - later I recogniced my fault an mounted the ntfs partition with
   codepage iso8859-15.
 - now all umlaut-files where created right.
 - problem is now, that I can't delete the old files with the special
   characters. ReiserFS don't print them out via 'ls' nor I can't delete a
   directory containing these files.
 - I made a reiserfsck -xo --rebuild-tree, but this didn't help

 You mean you have copied files from NTFS to reiserfs?

Yes.

 Haven't you applied recent Jeff Mahoney's patches?

Do you mean the preserve patch (propably not) or the
file attribut patch ?

Meanwhile I updated to kernel 2.4.6-pre7 from SuSE (Mantel).
Problem still exists. Patching this kernel with the file attribut patch is 
hard...


   System: SuSE 7.2, Kernel SuSE 2.4.4-28
   Errormessage from rm: cannot remove `D\201nn.OPJ': No such file or
   directory (meaning Dünn.OPJ, or Duuml;nn.OPJ
  

Greetings Marc





Re: [reiserfs-list] can't delete files with extra characters

2001-07-16 Thread Nikita Danilov

Marc Dietrich writes:
  Hello,
  
  
  Am Montag, 16. Juli 2001 13:10 schrieb Nikita Danilov:
  
   Marc Dietrich writes:
 Hi,

 I have a problem deleting files witch contain 'special' characters:
 ok - the whole story:
   - I want to migrade a NT server to Samba with ReiserFS :)
   - I mounted the ntfs partition _without_ using a special codepage
   - thus, linux created files containing umlaute äöü... to some
 special characters, witch looks like boxes.
   - later I recogniced my fault an mounted the ntfs partition with
 codepage iso8859-15.
   - now all umlaut-files where created right.
   - problem is now, that I can't delete the old files with the special
 characters. ReiserFS don't print them out via 'ls' nor I can't delete a
 directory containing these files.
   - I made a reiserfsck -xo --rebuild-tree, but this didn't help
  
   You mean you have copied files from NTFS to reiserfs?
  
  Yes.

Correct me if I get a sequence of your actions wrong:

1. mount reiserfs at /reiserfs
2. mount nfts without codepage parameter at /ntfs
3. cp /ntfs/something /reiserfs/something.1
4. umount /ntfs ; mount /ntfs with codepage parameter
5. cp /ntfs/something /reiserfs/something.2

now you don't see /reiserfs/something.1 correctly and kernel wasn't
changed (patched, recompiled and rebooted) between 2 and 5?

  
   Haven't you applied recent Jeff Mahoney's patches?
  
  Do you mean the preserve patch (propably not) or the
  file attribut patch ?

I mean hash-signness fix posted recently posted by Jeff to the list.

  
  Meanwhile I updated to kernel 2.4.6-pre7 from SuSE (Mantel).
  Problem still exists. Patching this kernel with the file attribut patch is 
  hard...

What are the problems? Rejects?

  
  
 System: SuSE 7.2, Kernel SuSE 2.4.4-28
 Errormessage from rm: cannot remove `D\201nn.OPJ': No such file or
 directory (meaning Dünn.OPJ, or Duuml;nn.OPJ

  
  Greetings Marc

Nikita.



[reiserfs-list] syncronous symlink()

2001-07-16 Thread Ketil Froyn

Hi.

Last time I asked, the discussion was on a second part of my mail that I
only asked because I was curious :) What I need to find out is how to make
a symlink() operation syncronous. I want it to be syncronous like link()
followed by a sync() of the directory, but I have to use symlink(). In
other words, I must know that the symlink and the newpath are both
synced to disk.

Thanks.

Ketil




Re: [reiserfs-list] /etc/magic

2001-07-16 Thread Nikita Danilov

Russell Coker writes:
  Could someone please write up some /etc/magic entries for reiserfs?
  
  I think it should be something like:
  0x10034 string ReIsErFs Old Reiserfs
  0x10034 string ReIsEr2Fs New Reiserfs
  
  But that doesn't work for some reason...

Take source distribution of file, increase HOWMANY in file.h (at least
to 0x10050), recompile and it'll work.

Stock file(1) only looks at the 16384 first bytes of the file.

By the way, are you considering sending your magic entry to the
directory maintainer? If so, can you reword it to ReiserFS v3.5 and
ReiserFS v3.6 otherwise we'll end with miserable Newest Reiserfs
etc.

  
  -- 

Nikita.



Re: [reiserfs-list] can't delete files with extra characters

2001-07-16 Thread Marc Dietrich




On Monday, 16. July 2001 14:56, Nikita Danilov wrote:
 Marc Dietrich writes:
   Am Montag, 16. Juli 2001 13:10 schrieb Nikita Danilov:
Marc Dietrich writes:
  Hi,
 
  I have a problem deleting files witch contain 'special' characters:
  ok - the whole story:
- I want to migrade a NT server to Samba with ReiserFS :)
- I mounted the ntfs partition _without_ using a special codepage
- thus, linux created files containing umlaute äöü... to some
  special characters, witch looks like boxes.
- later I recogniced my fault an mounted the ntfs partition with
  codepage iso8859-15.
- now all umlaut-files where created right.
- problem is now, that I can't delete the old files with the
  special characters. ReiserFS don't print them out via 'ls' nor I
  can't delete a directory containing these files.
- I made a reiserfsck -xo --rebuild-tree, but this didn't help
   
You mean you have copied files from NTFS to reiserfs?
  
   Yes.

 Correct me if I get a sequence of your actions wrong:

 1. mount reiserfs at /reiserfs
 2. mount nfts without codepage parameter at /ntfs
 3. cp /ntfs/something /reiserfs/something.1
 4. umount /ntfs ; mount /ntfs with codepage parameter
 5. cp /ntfs/something /reiserfs/something.2

Right. 
4. umount /ntfs ; mount -oiocharset=iso8859-15 /ntfs


 now you don't see /reiserfs/something.1 correctly and kernel wasn't
 changed (patched, recompiled and rebooted) between 2 and 5?

Right. This steps were done with kernel-2.4.4-28 from SuSE.

Haven't you applied recent Jeff Mahoney's patches?
  
   Do you mean the preserve patch (probably not) or the
   file attribut patch ?

 I mean hash-signness fix posted recently posted by Jeff to the list.

Mmmh. My machine is a little endian i586. NT server was also ... As said in 
the posting, this patch has no effect on little endian machines, am I right?
Anyway, I believe the 2.4.4 kernel wasn't patched and the new one is allready 
patched by Mr. Mantel.


   Meanwhile I updated to kernel 2.4.6-pre7 from SuSE (Mantel).
   Problem still exists. Patching this kernel with the file attribut patch
   is hard...

 What are the problems? Rejects?

Yep. It has 3 fails in inode.c (Hunk #1,#2 and #4).

Here is an output of ls and move. The directory is mostly empty.

# ls -bq
ls: D\201nn.OPJ: No such file or directory
ls: mesd\201nn1.asc: No such file or directory
ls: KondD\201nn.asc: No such file or directory
.  ..

# mv D?nn.OPJ test
mv: cannot stat `D\201nn.OPJ': No such file or directory

Greetings Marc





Re: [reiserfs-list] /etc/magic

2001-07-16 Thread Russell Coker

On Mon, 16 Jul 2001 15:56, Nikita Danilov wrote:
 Russell Coker writes:
   Could someone please write up some /etc/magic entries for reiserfs?
  
   I think it should be something like:
   0x10034 string ReIsErFs Old Reiserfs
   0x10034 string ReIsEr2Fs New Reiserfs
  
   But that doesn't work for some reason...

 Take source distribution of file, increase HOWMANY in file.h (at least
 to 0x10050), recompile and it'll work.

 Stock file(1) only looks at the 16384 first bytes of the file.

Thanks for that!

 By the way, are you considering sending your magic entry to the
 directory maintainer? If so, can you reword it to ReiserFS v3.5 and
 ReiserFS v3.6 otherwise we'll end with miserable Newest Reiserfs
 etc.

Sure.  I wrote that quickly after spending an hour fiddling with /etc/magic 
trying to get it to work!

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page



Re: [reiserfs-list] can't delete files with extra characters

2001-07-16 Thread Marc Dietrich

Hello, 

On Monday, 16. July 2001 16:10, Chris Wedgwood wrote:
 On Mon, Jul 16, 2001 at 04:01:30PM +0200, Marc Dietrich wrote:

 # ls -bq
 ls: D\201nn.OPJ: No such file or directory
 ls: mesd\201nn1.asc: No such file or directory
 ls: KondD\201nn.asc: No such file or directory

 does you strace dump the results from readdir and stat[64] ? If som
 can you strace this and check ls is trying to stat the same values it
 got from readdir?


I don't a lot of debuging, so I attach the hole output (I hope it's not to long).

# ls -bq
execve(/bin/ls, [ls, -bq], [/* 42 vars */]) = 0
uname({sys=Linux, node=kohl-b, ...}) = 0
brk(0)  = 0x8053ea4
open(/etc/ld.so.preload, O_RDONLY)= -1 ENOENT (No such file or directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=47830, ...}) = 0
old_mmap(NULL, 47830, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3)= 0
open(/lib/libc.so.6, O_RDONLY)= 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\\315..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1341862, ...}) = 0
old_mmap(NULL, 1163332, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40023000
mprotect(0x40135000, 41028, PROT_NONE)  = 0
old_mmap(0x40135000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x111000) 
= 0x40135000
old_mmap(0x4013b000, 16452, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 
-1, 0) = 0x4013b000
close(3)= 0
munmap(0x40017000, 47830)   = 0
getpid()= 21252
brk(0)  = 0x8053ea4
brk(0x8053ecc)  = 0x8053ecc
brk(0x8054000)  = 0x8054000
brk(0x8055000)  = 0x8055000
open(/usr/share/locale/locale.alias, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2567, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40017000
read(3, # Locale name alias data base.\n#..., 4096) = 2567
read(3, , 4096)   = 0
close(3)= 0
munmap(0x40017000, 4096)= 0
open(/usr/lib/locale/de_DE+euro/LC_CTYPE, O_RDONLY) = -1 ENOENT (No such file or 
directory)
open(/usr/lib/locale/de_DE@euro/LC_CTYPE, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=138812, ...}) = 0
old_mmap(NULL, 138812, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4014
close(3)= 0
time(NULL)  = 995294966
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=43, ws_col=139, ws_xpixel=0, ws_ypixel=0}) = 0
brk(0x8058000)  = 0x8058000
open(/dev/null, O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
open(., O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0500, st_size=115, ...}) = 0
shmat(3, 0x4013b000, 0x2ptrace: umoven: Input/output error
)   = ?
brk(0x805a000)  = 0x805a000
ipc_subcall(0x3, 0x8057c50, 0x1000, 0)  = 144
ipc_subcall(0x3, 0x8057c50, 0x1000, 0)  = 0
close(3)= 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40017000
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(1, D\\201nn.OPJ  KondD\\201nn.asc  me..., 46D\201nn.OPJ  KondD\201nn.asc  
mesd\201nn1.asc
) = 46
munmap(0x40017000, 4096)= 0
_exit(0)= ?




Re: [reiserfs-list] /etc/magic

2001-07-16 Thread Russell Coker

What do you think of the following?

0x10034  string ReIsErFs ReiserFS V3.5
0x10034  string ReIsEr2Fs ReiserFS V3.6
0x1002c short  x block size %d
0x10032 short  2 (mounted or unclean)
0x1 long   x num blocks %d
0x10040 long   =1 tea hash
0x10040 long   =2 yura hash
0x10040 long   =3 r5 hash

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page



Re: [reiserfs-list] /etc/magic

2001-07-16 Thread Nikita Danilov

Russell Coker writes:
  What do you think of the following?
  
  0x10034  string ReIsErFs ReiserFS V3.5
  0x10034  string ReIsEr2Fs ReiserFS V3.6
  0x1002c short  x block size %d
  0x10032 short  2 (mounted or unclean)
  0x1 long   x num blocks %d
  0x10040 long   =1 tea hash
  0x10040 long   =2 yura hash
  0x10040 long   =3 r5 hash

s/short/leshort/
s/long/lelong/

  
  -- 
  http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
  http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
  http://www.coker.com.au/projects.html Projects I am working on
  http://www.coker.com.au/~russell/ My home page

Nikita.