Skip to contentSkip to conversation

Still wrong reported file size after --rebuild-tree

DISCUSSION Philippe Gramoullé 5 participants 10 messages Oct 30, 2002 – Nov 5, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I just wanted to let you know that after rebuilding the tree for a 500Go volume, i still have wrong file size reported :

/dev/sdb1 572418604 174714996 397703608 31% /storage

# ls -l
total 4928006
-r-x-wx-wx    1 daemon   324231      32768 Jan  1  1970 25s.jpg
-r-x--x---    1 19415372 19415373 83388383504122186 Aug 13  1970 25s_lb.jpg
-r--rw-rw-    1 19415354 19415355 83388306194710840 Aug 13  1970 25slight.jpg
-r---wxrwx    1 19415331 19415332 83388207410463009 Aug 13  1970 25slight_ln.jpg
-rw-rw-r--    1 500      500         19616 Dec 13  2000 AnLake.class
-rw-rw-r--    1 500      500         12576 Dec 13  2000 AnLake.jar
-rw-rw-r--    1 500      500          2251 Dec 13  2000 Lware.class
-r----x-w-    1 19415310 19415311 83388117216149772 Aug 13  1970 anfy.class
-rw-rw-r--    1 500      500          5699 Dec 13  2000 anlake.txt
-rw-rw-r--    1 500      500          1963 Dec 13  2000 chesterfield.htm
-rw-rw-r--    1 500      500         21143 Dec 13  2000 filter.jpg

I'll make metadata available as soon as debugreiserfs is finised. (reiserfsck used was 3.6.4 ( 3.6.4 pre3)

Thanks,

Philippe.

#1 lore raw

Philippe Gramoullé wanted us to know:

Quoted 3 lines

I just wanted to let you know that after rebuilding the tree for a 500Go volume, i still have wrong file size reported :
/dev/sdb1 572418604 174714996 397703608 31% /storage

Hmmm, ours showed 96% or something like that. I'll check to see if it's accurate.

Review

Quoted 3 lines
(quoted diff) +0 -3
-r-x--x---    1 19415372 19415373 83388383504122186 Aug 13  1970 25s_lb.jpg
-r--rw-rw-    1 19415354 19415355 83388306194710840 Aug 13  1970 25slight.jpg
-r---wxrwx    1 19415331 19415332 83388207410463009 Aug 13  1970 25slight_ln.jpg

We had these too. Humongous uid and gid numbers.

Quoted 2 lines

I'll make metadata available as soon as debugreiserfs is finised. (reiserfsck used was 3.6.4 ( 3.6.4 pre3)

I really don't think it's a requirement to see our metadata as our problems were caused by faulty hardware and not any bugs in the fs itself.

Signature · 5 lines
Blue skies...		Todd
| Get a bigger hammer!   | Security is like an onion.  It's made   |
| http://www.mrball.net  | up of several layers and makes you cry. |
| http://faq.mrball.net  |                         --Howard Chu    |
   Linux kernel 2.5.44   3 users,  load average: 0.00, 0.00, 0.00
#2 lore raw

On Wed, 30 Oct 2002 19:57:36 -0800
Todd Lyons <[email protected]> wrote:

  |  Philippe Gramoullé wanted us to know:
  |  
  |  >I just wanted to let you know that after rebuilding the tree for a 500Go
  |  >volume, i still have wrong file size reported :
  |  >/dev/sdb1            572418604 174714996 397703608  31% /storage
  |  
  |  Hmmm, ours showed 96% or something like that.  I'll check to see if it's
  |  accurate.

oh, the above figures are correct. I only wanted to report about the bogus files sizes below.

  |  
  |  >-r-x--x---    1 19415372 19415373 83388383504122186 Aug 13  1970 25s_lb.jpg
  |  >-r--rw-rw-    1 19415354 19415355 83388306194710840 Aug 13  1970 25slight.jpg
  |  >-r---wxrwx    1 19415331 19415332 83388207410463009 Aug 13  1970 25slight_ln.jpg
  |  
  |  We had these too.  Humongous uid and gid numbers.

Though we do use 32 bits UIDs & GIDs ( up to 2 Millions or so right now ), we don't have ones up to 19415331 :o) Not yet :o)

  |  
  |  >I'll make metadata available as soon as debugreiserfs is finised.
  |  >(reiserfsck used was 3.6.4 ( 3.6.4 pre3)
  |  
  |  I really don't think it's a requirement to see our metadata as our
  |  problems were caused by faulty hardware and not any bugs in the fs
  |  itself.

In my case, i don't think the hardware is broken but there have been some poweroffs that seem to have damaged the FS somewhat. Raid volumes have been checked, disks are ok , logical volume consistency as well, so it's up to ReiserFS team to say if something's wrong with reporting those file sizes even after a full --rebuild-tree.

Thanks,

Philippe

#3 lore raw
Quoted 15 lines · Philippe Gramoullé

On Wed, 30 Oct 2002 19:57:36 -0800
Todd Lyons <[email protected]> wrote:

  |  Philippe Gramoullé wanted us to know:
  |  
  |  >I just wanted to let you know that after rebuilding the tree for a 500Go
  |  >volume, i still have wrong file size reported :
  |  >/dev/sdb1            572418604 174714996 397703608  31% /storage
  |  
  |  Hmmm, ours showed 96% or something like that.  I'll check to see if it's
  |  accurate.

oh, the above figures are correct. I only wanted to report about the bogus files sizes below.

Quoted 6 lines
  |  
  |  >-r-x--x---    1 19415372 19415373 83388383504122186 Aug 13  1970 25s_lb.jpg
  |  >-r--rw-rw-    1 19415354 19415355 83388306194710840 Aug 13  1970 25slight.jpg
  |  >-r---wxrwx    1 19415331 19415332 83388207410463009 Aug 13  1970 25slight_ln.jpg
  |  
  |  We had these too.  Humongous uid and gid numbers.

They are also -consequent-, and Oleg found that they look conspicuous when printed in hex (with file sizes).

Quoted 11 lines

Though we do use 32 bits UIDs & GIDs ( up to 2 Millions or so right now ), we don't have ones up to 19415331 :o) Not yet :o)

  |  
  |  >I'll make metadata available as soon as debugreiserfs is finised.
  |  >(reiserfsck used was 3.6.4 ( 3.6.4 pre3)
  |  
  |  I really don't think it's a requirement to see our metadata as our
  |  problems were caused by faulty hardware and not any bugs in the fs
  |  itself.
Quoted 8 lines

In my case, i don't think the hardware is broken but there have been some poweroffs that seem to have damaged the FS somewhat. Raid volumes have been checked, disks are ok , logical volume consistency as well, so it's up to ReiserFS team to say if something's wrong with reporting those file sizes even after a full --rebuild-tree.

Thanks,

Philippe

Nikita.

#4 lore raw

Nikita Danilov wanted us to know:

Quoted 6 lines
Quoted 4 lines
  |  >-r-x--x---    1 19415372 19415373 83388383504122186 Aug 13  1970 25s_lb.jpg
  |  >-r--rw-rw-    1 19415354 19415355 83388306194710840 Aug 13  1970 25slight.jpg
  |  >-r---wxrwx    1 19415331 19415332 83388207410463009 Aug 13  1970 25slight_ln.jpg
  |  We had these too.  Humongous uid and gid numbers.

They are also -consequent-, and Oleg found that they look conspicuous when printed in hex (with file sizes).

Now that you mention it, yes. Interesting that they all have the same date and how the perms have a funny pattern too.

Signature · 5 lines
Blue skies...		Todd
| Get a bigger hammer!   |   Never mind me.  I'm speaking out of  |
| http://www.mrball.net  |   my /dev/ass anyway.                  |
| http://faq.mrball.net  |                        --Gash Teshome  |
   Linux kernel 2.5.44   2 users,  load average: 0.00, 0.00, 0.00
#5 lore raw
In reply to Philippe Gramoullé

Hi,

Please, find the metata here :

http://philippemm.multimania.com/metadata-2.4.19-pre6.bz2

ahem , it's a 100Mo file :o)

Thanks,

Philippe

<-------------debugreiserfs, 2002------------->
reiserfsprogs 3.6.4-pre3

Loading on-disk bitmap .. 43683118 bits set - done
super block..ok
bitmaps..(4368).. ok
journal (from 18 to 8210)..ok
Super block, bitmaps, journal - 12562 blocks - done, 43670556 blocks left
0%....20%....40%....60%....80%.... left 0, 7989 /sec
Packed 647143 blocks:
compessed 637664
full blocks 9479
leaves with broken block head 15
corrupted leaves 0
internals 4509
descriptors 0
data packed with ratio 0.11

#6 lore raw
In reply to Philippe Gramoullé

Hi,

Quoted 10 lines · Philippe Gramoullé

Hi,

I just wanted to let you know that after rebuilding the tree for a 500Go volume, i still have wrong file size reported :

/dev/sdb1 572418604 174714996 397703608 31% /storage

# ls -l
total 4928006

Review

Quoted 4 lines
(quoted diff) +0 -4
-r-x-wx-wx 1 daemon   324231      32768 Jan  1  1970 25s.jpg
-r-x--x--- 1 19415372 19415373 83388383504122186 Aug 13 1970 25s_lb.jpg
-r--rw-rw- 1 19415354 19415355 83388306194710840 Aug 13 1970 25slight.jpg 
-r---wxrwx 1 19415331 19415332 83388207410463009 Aug 13 1970 25slight_ln.jpg 

ReiserFS can handle 64 bit file sizes, so from the reiserfsck point of view these are correct sizes.

Signature · 2 lines
Thanks,
Vitaly Fertman
#7 lore raw
In reply to Philippe Gramoullé
Quoted 12 lines · Vitaly Fertman

Hi,

Quoted 7 lines · Philippe Gramoullé

Hi,

I just wanted to let you know that after rebuilding the tree for a 500Go volume, i still have wrong file size reported :

/dev/sdb1 572418604 174714996 397703608 31% /storage

Quoted 14 lines

Review

Quoted 9 lines
# ls -l
total 4928006
(quoted diff) +0 -4
-r-x-wx-wx 1 daemon   324231      32768 Jan  1  1970 25s.jpg
-r-x--x--- 1 19415372 19415373 83388383504122186 Aug 13 1970 25s_lb.jpg
-r--rw-rw- 1 19415354 19415355 83388306194710840 Aug 13 1970 25slight.jpg 
-r---wxrwx 1 19415331 19415332 83388207410463009 Aug 13 1970 25slight_ln.jpg 

ReiserFS can handle 64 bit file sizes, so from the reiserfsck point of view these are correct sizes.

You mean to say that you haven't written code to check that file sizes are correct, yes?

Signature · 1 line
Hans
#8 lore raw
Quoted 22 lines · Hans Reiser
Quoted 10 lines · Vitaly Fertman

Hi,

Quoted 7 lines · Philippe Gramoullé

Hi,

I just wanted to let you know that after rebuilding the tree for a 500Go volume, i still have wrong file size reported :

/dev/sdb1 572418604 174714996 397703608 31% /storage

Quoted 10 lines
Quoted 7 lines
# ls -l
total 4928006
(quoted diff) +0 -4
-r-x-wx-wx 1 daemon   324231      32768 Jan  1  1970 25s.jpg
-r-x--x--- 1 19415372 19415373 83388383504122186 Aug 13 1970 25s_lb.jpg
-r--rw-rw- 1 19415354 19415355 83388306194710840 Aug 13 1970 25slight.jpg
-r---wxrwx 1 19415331 19415332 83388207410463009 Aug 13 1970

25slight_ln.jpg

ReiserFS can handle 64 bit file sizes, so from the reiserfsck point of view these are correct sizes.

Quoted 2 lines

You mean to say that you haven't written code to check that file sizes are correct, yes?

No, I meant that it is considered as a legal situation to have a size in a file statdata greater then its real body size. Thus you can truncate the file to the greater size.

However, if you are sure that you do not have files with such holes at the end you can use --ajust-file-sizes option in rebuild and fix-fixable modes - fixable here - to correct such statdata's file sizes to file body sizes. (Sorry that I have not mentioned about this option in my previous email).

Signature · 2 lines
Thanks,
Vitaly Fertman
#9 lore raw
In reply to Philippe Gramoullé
Quoted 36 lines · Vitaly Fertman
Quoted 28 lines · Hans Reiser
Quoted 12 lines · Vitaly Fertman

Hi,

Quoted 7 lines · Philippe Gramoullé

Hi,

I just wanted to let you know that after rebuilding the tree for a 500Go volume, i still have wrong file size reported :

/dev/sdb1 572418604 174714996 397703608 31% /storage

Quoted 13 lines
Quoted 9 lines
# ls -l
total 4928006
(quoted diff) +0 -4
-r-x-wx-wx 1 daemon   324231      32768 Jan  1  1970 25s.jpg
-r-x--x--- 1 19415372 19415373 83388383504122186 Aug 13 1970 25s_lb.jpg
-r--rw-rw- 1 19415354 19415355 83388306194710840 Aug 13 1970 25slight.jpg
-r---wxrwx 1 19415331 19415332 83388207410463009 Aug 13 1970

25slight_ln.jpg

ReiserFS can handle 64 bit file sizes, so from the reiserfsck point of view these are correct sizes.

Quoted 4 lines

You mean to say that you haven't written code to check that file sizes are correct, yes?

Quoted 7 lines

No, I meant that it is considered as a legal situation to have a size in a file statdata greater then its real body size. Thus you can truncate the file to the greater size.

However, if you are sure that you do not have files with such holes at the end you can use --ajust-file-sizes option in rebuild and fix-fixable modes - fixable here - to correct such statdata's file sizes to file body sizes. (Sorry that I have not mentioned about this option in my previous email).

Ah, interesting.

Hans