X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Ftaper.c;h=c1b7cc6286e99de42cf84ae1e6a2677211a214b9;hb=14de11ecc99c33706c74b950d2d00e278abe9375;hp=fed6a33a114669e298fc29f75b2d5664e385c3a6;hpb=afaa71b3866b46b082b6c895772e15b36d8865fe;p=debian%2Famanda diff --git a/server-src/taper.c b/server-src/taper.c index fed6a33..c1b7cc6 100644 --- a/server-src/taper.c +++ b/server-src/taper.c @@ -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;