Skip to contentSkip to conversation

Issue a deprecation warning if the user specifies the "-hdachs" option.

PATCH Superseded Thomas Huth 1 participant 1 message Apr 26, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Issue a deprecation warning if the user specifies the "-hdachs" option.

If the user needs to specify the disk geometry, the corresponding parameters of the "-drive" option should be used instead. "-hdachs" is considered as deprecated and might be removed soon.

---
v2: Removed the trailing dot from the string as suggested by Eric

 vl.c | 2 ++
 1 file changed, 2 insertions(+)
vl.c +2 -0
index 0b4ed52..478cfdd 100644
@@ -3230,6 +3230,8 @@ int main(int argc, char **argv, char **envp)
                         }
                     }
                 }
+                error_report("'-hdachs' is deprecated, please use '-drive"
+                             " ...,cyls=c,heads=h,secs=s,trans=t' instead");
                 break;
             case QEMU_OPTION_numa:
                 opts = qemu_opts_parse_noisily(qemu_find_opts("numa"),
Signature · 1 line
1.8.3.1