Imported Upstream version 2.6.1p1
[debian/amanda] / server-src / taper.c
index fed6a33a114669e298fc29f75b2d5664e385c3a6..c1b7cc6286e99de42cf84ae1e6a2677211a214b9 100644 (file)
@@ -639,8 +639,14 @@ skip_volume:
 static void find_completion_tags(dump_info_t * dump_info, /* IN */
                                  cmd_t * result_cmd,      /* OUT */
                                  logtype_t * result_log   /* OUT */) {
+    /* result_cmd is always DONE because the taper wrote all the input to
+     * the output. driver need to know if the taper completed its job.
+     * result_log is set to L_PARTIAL if the image is partial, the log
+     * must tell if the image is partial or complete.
+     */
+       
     if (taper_source_is_partial(dump_info->source)) {
-        *result_cmd = PARTIAL;
+        *result_cmd = DONE;
         *result_log = L_PARTIAL;
     } else {
         *result_cmd = DONE;