mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Doesn't create the pool directory if missing.
This commit is contained in:
parent
dffb1c655f
commit
0ab9066a4f
5 changed files with 4 additions and 7 deletions
7
pool.c
7
pool.c
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue