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] /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] /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.