[GRASS-user] g.remove error?

Hi all.
While running form the QGIS GRASS shell, I get:

GRASS > g.remove vect=random_butta
Removing vector <random_butta>
WARNING: Unable to remove directory

'/home/Documenti/datigrass/CEA_location/Cea_GRASS/.tmp/ursus/31318.0'
WARNING: couldn't be removed
WARNING: <random_butta> nothing removed

but the layer is in fact removed: any explanation for this?
Thanks a lot.
--
Paolo Cavallini: http://www.faunalia.it/pc

Paolo Cavallini wrote:

Hi all.
While running form the QGIS GRASS shell, I get:

GRASS > g.remove vect=random_butta
Removing vector <random_butta>
WARNING: Unable to remove directory

'/home/Documenti/datigrass/CEA_location/Cea_GRASS/.tmp/ursus/31318.0'
WARNING: couldn't be removed
WARNING: <random_butta> nothing removed

but the layer is in fact removed: any explanation for this?

Vect_delete() renames the directory before deleting it. If the
deletion fails, you will get the above error. However, as the
directory has been renamed, it won't show up as a vector map.

Does the directory listed above exist? Does it contain any files or
subdirectories?

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

Glynn Clements ha scritto:

Does the directory listed above exist? Does it contain any files or
subdirectories?

Thanks Glynn for explaining. An nfs problem, apparently:

ls -la /home/Documenti/datigrass/CEA_location/Cea_GRASS/.tmp/ursus/31318.0/
totale 16
drwx--x--x 2 paolo paolo 4096 30 giu 17:45 .
drwx--x--x 11 paolo paolo 4096 30 giu 17:45 ..
-rw------- 1 paolo paolo 2914 30 giu 17:41 .nfs0000000000d9800100000006
-rw------- 1 paolo paolo 184 30 giu 17:41 .nfs0000000000d9800300000007

I have nfs-mounted homes. The .nfs* files are deleted correctly upon
QGIS closure.
All the best.
--
Paolo Cavallini: http://www.faunalia.it/pc

Paolo Cavallini wrote:

> Does the directory listed above exist? Does it contain any files or
> subdirectories?
>

Thanks Glynn for explaining. An nfs problem, apparently:

ls -la /home/Documenti/datigrass/CEA_location/Cea_GRASS/.tmp/ursus/31318.0/
totale 16
drwx--x--x 2 paolo paolo 4096 30 giu 17:45 .
drwx--x--x 11 paolo paolo 4096 30 giu 17:45 ..
-rw------- 1 paolo paolo 2914 30 giu 17:41 .nfs0000000000d9800100000006
-rw------- 1 paolo paolo 184 30 giu 17:41 .nfs0000000000d9800300000007

I have nfs-mounted homes. The .nfs* files are deleted correctly upon
QGIS closure.

Right. The reason why the directory is renamed is:

    /* NFS can create .nfsxxxxxxxx files for those deleted
     * -> we have to move the directory to ./tmp before it is deleted */

It appears that this isn't enough; but I have no idea what can be done
about it.

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