Re: [GRASS-dev] libgis: ERROR: Unable to make mapset element cell_misc/...

2009-03-07 Thread Markus Neteler
On Sat, Mar 7, 2009 at 8:29 AM, Glynn Clements wrote: > Markus Neteler wrote: > >> > access() sets errno when it fails. >> > >> > If you want the reason why mkdir() failed, you need to test the return >> > value from G_mkdir(), e.g.: ... >> Or is a second try to access unavoidable? > > It should b

Re: [GRASS-dev] libgis: ERROR: Unable to make mapset element cell_misc/...

2009-03-06 Thread Glynn Clements
Markus Neteler wrote: > > access() sets errno when it fails. > > > > If you want the reason why mkdir() failed, you need to test the return > > value from G_mkdir(), e.g.: > > > >        if (access(path, 0) != 0) > >            if (G_mkdir(path) != 0) > >                G_fatal_error(_("Unable to

Re: [GRASS-dev] libgis: ERROR: Unable to make mapset element cell_misc/...

2009-03-06 Thread Markus Neteler
On Sat, Mar 7, 2009 at 8:01 AM, Markus Neteler wrote: > On Sat, Mar 7, 2009 at 6:34 AM, Glynn Clements > wrote: >> Markus Neteler wrote: > ... >> access() sets errno when it fails. >> >> If you want the reason why mkdir() failed, you need to test the return >> value from G_mkdir(), e.g.: >> >>  

Re: [GRASS-dev] libgis: ERROR: Unable to make mapset element cell_misc/...

2009-03-06 Thread Markus Neteler
On Sat, Mar 7, 2009 at 6:34 AM, Glynn Clements wrote: > Markus Neteler wrote: ... > access() sets errno when it fails. > > If you want the reason why mkdir() failed, you need to test the return > value from G_mkdir(), e.g.: > >        if (access(path, 0) != 0) >            if (G_mkdir(path) != 0)

Re: [GRASS-dev] libgis: ERROR: Unable to make mapset element cell_misc/...

2009-03-06 Thread Glynn Clements
Markus Neteler wrote: > Is this patch reasonable? > > svn diff mapset_msc.c > Index: mapset_msc.c > === > --- mapset_msc.c(revision 36196) > +++ mapset_msc.c(working copy) > @@ -12,6 +12,7 @@ > #include > #include

Re: [GRASS-dev] libgis: ERROR: Unable to make mapset element cell_misc/...

2009-03-06 Thread Markus Neteler
On Fri, Mar 6, 2009 at 10:35 AM, Maris Nartiss wrote: > Hello, > with ETX3 You can't have more than 31998 sub-directories per one > directory [1]. It doesn't matter if You use 32 or 64 bit arch. Sniff, right: grep _LINK_MAX /usr/include/*/* ... /usr/include/bits/posix1_lim.h:#define _POSIX_LINK_

Re: [GRASS-dev] libgis: ERROR: Unable to make mapset element cell_misc/...

2009-03-06 Thread Maris Nartiss
Hello, with ETX3 You can't have more than 31998 sub-directories per one directory [1]. It doesn't matter if You use 32 or 64 bit arch. Maris. 1. http://en.wikipedia.org/wiki/Ext3 ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.or

[GRASS-dev] libgis: ERROR: Unable to make mapset element cell_misc/...

2009-03-05 Thread Markus Neteler
Hi I am processing MODIS LST time series and got this problem: r.in.gdal -o --o aqua_lst1km20090130.QC_Night.tif out=aqua_lst1km20090130.QC_Night 100% ERROR: Unable to make mapset element cell_misc/aqua_lst1km20090130.QC_Night (/home/neteler/grassdata/patUTM32/modisLST005filt/cell_misc/a