[GRASSLIST:10439] Re: error writing cell file during copy

Glynn Clements glynn at gclements.plus.com
Mon Feb 20 12:15:30 EST 2006


Rochelle MIranda wrote:

> > >  I was looking into the source code when i came across the following module.
> > >  d.rast.edit  
> > >  In file mk_new_layer.c  
> > > What does the following if  expression mean:
> > > 
> > > 
> > >         if ( read (tmpfd, rast, real_ncols * cellsize) != (real_ncols * cellsize))
> > >             error(1,"error writing cell file during copy");
> > > 
> > > 
> > >  And when can such error occur what are its causes?.
> > 
> > The error will occur if the file wasn't written correctly, or has been
> > truncated or corrupted in the meantime.
> 
> Sir , if am getting such an error , is there something i can do get
> rid of such error?
> Is it in our hands to overcome such errors which occur over
> meantime.
> Is there a way so tht the file will be written correctly and also
> to avoid the file gettting truncated or corrupted.what are the
> reasons for such file corruption to occur.

How large is the raster?

Unless it's particularly large (more than 2Gb uncompressed), any error
would probably be either a faulty hard disk (in which case, the kernel
should be reporting errors), or a bug in the program.

Can you identify a test case which would allow us to easily reproduce
the problem?

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list