Doesn't create the pool directory if missing.

This commit is contained in:
Andrea Mazzoleni 2013-03-10 19:54:37 +01:00
parent dffb1c655f
commit 0ab9066a4f
5 changed files with 4 additions and 7 deletions

7
pool.c
View file

@ -163,7 +163,6 @@ void state_pool(struct snapraid_state* state)
{
tommy_node* i;
char pool_dir[PATH_MAX];
int ret;
unsigned count;
if (state->pool[0] == 0) {
@ -177,12 +176,6 @@ void state_pool(struct snapraid_state* state)
pathprint(pool_dir, sizeof(pool_dir), "%s", state->pool);
pathslash(pool_dir, sizeof(pool_dir));
/* create it if missing */
ret = mkancestor(pool_dir);
if (ret != 0) {
exit(EXIT_FAILURE);
}
/* first clear the previous pool tree */
clean_dir(state, pool_dir);