mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 23:35:21 +00:00
crtools: Remove duplicate show_single_file boolean
It duplicates the show_dump_file pointer. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
a76922ebc0
commit
d4fd91046f
@@ -639,7 +639,7 @@ out:
|
||||
|
||||
int cr_show(unsigned long pid, struct cr_options *opts)
|
||||
{
|
||||
if (opts->show_single_file)
|
||||
if (opts->show_dump_file)
|
||||
return cr_parse_file(opts);
|
||||
|
||||
return cr_show_all(pid, opts);
|
||||
|
@@ -303,7 +303,6 @@ int main(int argc, char *argv[])
|
||||
opts.final_state = CR_TASK_LEAVE_RUNNING;
|
||||
break;
|
||||
case 'f':
|
||||
opts.show_single_file = true;
|
||||
opts.show_dump_file = optarg;
|
||||
break;
|
||||
case 'D':
|
||||
@@ -335,7 +334,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (!has_pid) {
|
||||
if (action != 's' || !opts.show_single_file)
|
||||
if (action != 's' || !opts.show_dump_file)
|
||||
goto opt_pid_missing;
|
||||
}
|
||||
|
||||
|
@@ -37,7 +37,6 @@ enum cr_task_final_state {
|
||||
struct cr_options {
|
||||
bool leader_only;
|
||||
enum cr_task_final_state final_state;
|
||||
bool show_single_file;
|
||||
bool show_pages_content;
|
||||
char *show_dump_file;
|
||||
};
|
||||
|
Reference in New Issue
Block a user