From mboxrd@z Thu Jan 1 00:00:00 1970 From: reiser Subject: Re: Still wrong reported file size after --rebuild-tree Date: Tue, 05 Nov 2002 00:05:12 -0800 Message-ID: <3DC77BB8.4040003@namesys.com> References: <20021030193045.69179289.philippe.gramoulle@mmania.com> <200211011630.13195.vitaly@namesys.com> <3DC2ED15.9080403@namesys.com> <200211021710.15930.vitaly@namesys.com> Reply-To: reiser@namesys.com Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <20021030193045.69179289.philippe.gramoulle@mmania.com> List-Id: Content-Type: text/plain; charset="iso-8859-9"; format="flowed" To: Vitaly Fertman Cc: =?KOI8-R?Q?Philippe_Gramoulle=27?= , reiserfs Vitaly Fertman wrote: >On Saturday 02 November 2002 00:07, Hans Reiser wrote: > =20 > >>Vitaly Fertman wrote: >> =20 >> >>>Hi, >>> >>>On Wednesday 30 October 2002 21:30, Philippe Gramoull=C3=A9 wrote: >>> =20 >>> >>>>Hi, >>>> >>>>I just wanted to let you know that after rebuilding the tree for a 50= 0Go >>>>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.j= pg >>>>-r--rw-rw- 1 19415354 19415355 83388306194710840 Aug 13 1970 25slight= =2Ejpg >>>>-r---wxrwx 1 19415331 19415332 83388207410463009 Aug 13 1970 >>>>25slight_ln.jpg >>>> =20 >>>> >>>ReiserFS can handle 64 bit file sizes, so from the reiserfsck point of= >>>view these are correct sizes. >>> =20 >>> >>You mean to say that you haven't written code to check that file sizes >>are correct, yes? >> =20 >> > >No, I meant that it is considered as a legal situation to have a size in= =20 >a file statdata greater then its real body size. Thus you can truncate=20 >the file to the greater size.=20 > >However, if you are sure that you do not have files with such holes at=20 >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 bod= y=20 >sizes. (Sorry that I have not mentioned about this option in my previous= =20 >email).=20 > > =20 > Ah, interesting. Hans