mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qga: Remove deprecated 'blacklist' argument / config key
The 'blacklist' argument / config key are deprecated since commit
582a098e6c
("qga: Replace 'blacklist' command line and config file
options by 'block-rpcs'"), time to remove them.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Message-Id: <20240530070413.19181-1-philmd@linaro.org>
This commit is contained in:
parent
7ffc4894a6
commit
a7a2d636ae
3 changed files with 18 additions and 24 deletions
|
@ -1071,11 +1071,6 @@ static void config_load(GAConfig *config)
|
|||
g_key_file_get_boolean(keyfile, "general", "retry-path", &gerr);
|
||||
}
|
||||
|
||||
if (g_key_file_has_key(keyfile, "general", "blacklist", NULL)) {
|
||||
g_warning("config using deprecated 'blacklist' key, should be replaced"
|
||||
" with the 'block-rpcs' key.");
|
||||
blockrpcs_key = "blacklist";
|
||||
}
|
||||
if (g_key_file_has_key(keyfile, "general", blockrpcs_key, NULL)) {
|
||||
config->bliststr =
|
||||
g_key_file_get_string(keyfile, "general", blockrpcs_key, &gerr);
|
||||
|
@ -1190,7 +1185,6 @@ static void config_parse(GAConfig *config, int argc, char **argv)
|
|||
{ "path", 1, NULL, 'p' },
|
||||
{ "daemonize", 0, NULL, 'd' },
|
||||
{ "block-rpcs", 1, NULL, 'b' },
|
||||
{ "blacklist", 1, NULL, 'b' }, /* deprecated alias for 'block-rpcs' */
|
||||
{ "allow-rpcs", 1, NULL, 'a' },
|
||||
#ifdef _WIN32
|
||||
{ "service", 1, NULL, 's' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue