lkml.org 
[lkml]   [1999]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Wrong file size, is it dangerous?
On Mon, 8 Mar 1999, Ricardo Galli Granada wrote:

> Hi all,
> I was suprised today. I found a mailbox in my 2.0.36 to be to
> big to be true
>
> star:/home/var/spool/mail # ls -l .ptocarmen.bad
> -rw------- 1 ptocarme root 3221220956 Mar 5 03:17 .ptocarmen.bad
>

This is a sparse file generated by some kind of error. A sparse file
could show a length equal to the maximum size allowed for a file, but
use only one allocation unit. You could create such a file by creating
one, doing an lseek to some large offset, writing one byte, then closing
it.

I would just delete it. The error probably occurred over NFS with the
file-size being received incorrectly. You probably have nothing wrong
with your local file-system.

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.2.2 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
Bait : plutonium Cuba president assassination killed Iran Honduras
nitrate tritium toluene ammonium subway 747 pits iodine critical nuclear



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.042 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site