]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl add comments
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 17 Feb 2007 10:13:40 +0000 (10:13 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 17 Feb 2007 10:13:40 +0000 (10:13 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.0@4191 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/fd_cmds.c

index 8a8782109ed6e560922689daa35cead65efd3e92..f1cda475766a484d6c5b7f578f593374c407d427 100644 (file)
@@ -505,6 +505,9 @@ int send_runscript_with_old_proto(JCR *jcr, int when, POOLMEM *msg)
 
 /*
  * Send RunScripts to File daemon
+ * 1) We send all runscript to FD, they can be executed Before, After, or twice
+ * 2) Then, we send a "RunBeforeNow" command to the FD to tell him to do the
+ *    first run_script() call. (ie ClientRunBeforeJob)
  */
 int send_runscripts_commands(JCR *jcr)
 {
@@ -552,15 +555,16 @@ int send_runscripts_commands(JCR *jcr)
                return 0;
             }
          }
-         /*
+         /* TODO : we have to play with other client */
+        /*
            else {
            send command to an other client
            }
          */
       }        
-   }
-   
-   /* TODO : we have to play with other client */
+   } 
+
+   /* We tell to the FD that i can execute commands (ie ClientRunBeforeJob) */
    if (launch_before_cmd) {
       bnet_fsend(fd, runbeforenow);
       if (!response(jcr, fd, OKRunBeforeNow, "RunBeforeNow", DISPLAY_ERROR)) {