[GRASS-dev] [GRASS GIS] #2712: WARNING: Unable to rename null file

GRASS GIS trac at osgeo.org
Thu Jul 23 05:02:19 PDT 2015

#2712: WARNING: Unable to rename null file
  Reporter:  hellik     |      Owner:  grass-dev@…
      Type:  defect     |     Status:  new
  Priority:  blocker    |  Milestone:  7.1.0
 Component:  LibRaster  |    Version:  svn-trunk
Resolution:             |   Keywords:  raster
       CPU:  x86-32     |   Platform:  MSWindows Vista

Comment (by glynn):

 Replying to [comment:9 martinl]:
 > The bug seems to be related to the recent changes in null data support
 done in trunk.

 I think that it's because r65323 deferred closing the null file (because a
 compressed null file needs to have the row pointers written out), meaning
 that the file is still open at the time of the rename() call. This is
 valid on Unix but not on Windows (although the MSDN documentation neglects
 to mention this in the description of the EACCESS error for rename()).

 So, the order needs to be:

 * Write out row pointers
 * Close file
 * Rename file

Ticket URL: <https://trac.osgeo.org/grass/ticket/2712#comment:10>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list