Adds a new -l, --log option.

This commit is contained in:
Andrea Mazzoleni 2013-03-01 20:13:56 +01:00
parent 7f8551fccb
commit 0200a2b7fa
19 changed files with 280 additions and 193 deletions

2
pool.c
View file

@ -146,7 +146,7 @@ static void make_link(const char* pool_dir, struct snapraid_disk* disk, const ch
ret = symlink(linkto, path);
if (ret != 0) {
if (errno == EEXIST) {
fprintf(stderr, "warning: '%s' already exists\n", path);
fprintf(stderr, "warning: Duplicate pooling for '%s'\n", path);
#ifdef _WIN32
} else if (errno == EPERM) {
fprintf(stderr, "You must run as Adminstrator to be able to create symlinks.\n");