[GRASS-dev] [GRASS GIS] #2764: corrupt data written to FCELL and DCELL rasters, hard to re-produce
GRASS GIS
trac at osgeo.org
Thu May 2 12:35:12 PDT 2019
#2764: corrupt data written to FCELL and DCELL rasters, hard to re-produce
----------------------+-------------------------
Reporter: dylan | Owner: grass-dev@…
Type: defect | Status: closed
Priority: normal | Milestone: 7.2.4
Component: Raster | Version: unspecified
Resolution: wontfix | Keywords:
CPU: x86-64 | Platform: Linux
----------------------+-------------------------
Comment (by mmetz):
Replying to [comment:40 mmetz]:
> In [changeset:"74456" 74456]:
> {{{
> #!CommitTicketReference repository="" revision="74456"
> libraster: fsync data files before closing, and capture any errors (see
#2764)
> }}}
from `man 2 write`:
{{{
A successful return from write() does not make any guarantee that
data has been committed to disk. On some filesystems,
including NFS, it does not even guarantee that space has
successfully been reserved for the data. In this case, some errors
might be delayed until a future write(2), fsync(2), or even
close(2). The only way to be sure is to call fsync(2) after you
are done writing all your data.
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2764#comment:41>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list