Bug #3722

pithos backend creates data file parent dirs even if it is only checking for existence

Added by Georgios Tsoukalas almost 11 years ago.

Status:Assigned Start date:05/13/2013
Priority:Medium Due date:
Assignee:Georgios Tsoukalas % Done:

0%

Category:Pithos Spent time: -
Target version:0.14.0

Description

skalkoto bumped into this bug while trying to regiter an image.

The map file did not exist but pithos was not able to create it because
its parent directories existed (empty) and were owned by another user (root).

This can happen if the pithos backend is run by another user,
(as pithcat is), even if no write is requested, since the pithos backend
will create the directory hierarchy even when checking for existence.

It would be better if the directory hierarchy was created only when
a data file is about to be written.

Please, carefully review any commits for this.

Associated revisions

Revision 88b85d64
Added by Georgios D. Tsoukalas almost 11 years ago

pithos: skip data directory creation until needed

Before this, when the pithos backend checked for the existence of a
data file (map or block) it also created its parent directories
if they did not exist, even though this is not needed until someone
actually decides to write the file.

Refs: #3722

Revision 64aee350
Added by Georgios D. Tsoukalas over 10 years ago

pithos: skip data directory creation until needed

Before this, when the pithos backend checked for the existence of a
data file (map or block) it also created its parent directories
if they did not exist, even though this is not needed until someone
actually decides to write the file.

Refs: #3722

Also available in: Atom PDF