]> git.tuebingen.mpg.de Git - dss.git/commitdiff
rsync: Remove hardcoded --quiet option.
authorAndre Noll <maan@systemlinux.org>
Thu, 20 Dec 2012 13:38:41 +0000 (14:38 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 22 Jan 2013 09:08:06 +0000 (10:08 +0100)
When running in daemon mode, the stdout and stderr stream of dss and
all its child processes are redirected to /dev/null. In particular any
output from the rsync process is discarded. Therefore, whenever a new
snapshot is created, dss currently passes --quiet to the underlying
rsync command, along with --archive and --delete.

However, as was pointed out by Sebastian Schultheiß, if the rsync
command fails for unknown reasons, the --quiet option complicates
debugging for the questionable benefit of saving the I/O for a few
writes to /dev/null.

This patch removes the --quiet option.

dss.c

diff --git a/dss.c b/dss.c
index 11c1d06554f9dcb95599fa2a5dc2bd6f9ee21e4b..813d73dc11204a2a4a6989c89e23f469db049680 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -1148,7 +1148,7 @@ static void create_rsync_argv(char ***argv, int64_t *num)
 
        *argv = dss_malloc((15 + conf.rsync_option_given) * sizeof(char *));
        (*argv)[i++] = dss_strdup("rsync");
-       (*argv)[i++] = dss_strdup("-aq");
+       (*argv)[i++] = dss_strdup("-a");
        (*argv)[i++] = dss_strdup("--delete");
        for (j = 0; j < conf.rsync_option_given; j++)
                (*argv)[i++] = dss_strdup(conf.rsync_option_arg[j]);