Skip to contentSkip to conversation

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

PATCH Superseded Thomas Huth 3 participants 4 messages Apr 25, 2017 – Apr 27, 2017

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 vl.c | 2 ++
 1 file changed, 2 insertions(+)
vl.c +2 -0
index 0b4ed52..0980213 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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Thomas Huth

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.

---
 vl.c | 2 ++
 1 file changed, 2 insertions(+)
vl.c +0 -0
index 0b4ed52..0980213 100644

vl.c int main(int argc, char **argv, char **envp) · line 3234

Quoted 5 lines
vl.c +2 -0
@@ -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.");

No trailing dot. With that fixed,

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
#2 lore raw
In reply to Thomas Huth
Quoted 15 lines · Thomas Huth

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.

---
 vl.c | 2 ++
 1 file changed, 2 insertions(+)
vl.c +0 -0
index 0b4ed52..0980213 100644

vl.c int main(int argc, char **argv, char **envp) · line 3237

Quoted 8 lines
vl.c +2 -0
@@ -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"),

Not even this, which should also be deprecated; please suggest using "-device ide-hd" instead.

Paolo

#3 lore raw
Quoted 21 lines · Paolo Bonzini
Quoted 18 lines · Thomas Huth

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.

---
 vl.c | 2 ++
 1 file changed, 2 insertions(+)
vl.c +1 -0
index 0b4ed52..0980213 100644
@@ -3230,6 +3230,8 @@ int main(int argc, char **argv, char **envp)
                         }
                     }
                 }
+                error_report("'-hdachs' is deprecated. Please use '-drive"
Quoted 8 lines

vl.c int main(int argc, char **argv, char **envp) · line 3237

Quoted 5 lines
vl.c +1 -0
+                             " ...,cyls=c,heads=h,secs=s,trans=t' instead.");
                 break;
             case QEMU_OPTION_numa:
                 opts = qemu_opts_parse_noisily(qemu_find_opts("numa"),

Not even this, which should also be deprecated; please suggest using "-device ide-hd" instead.

D'oh, you're right, of course ... I'll send a v3 ...

Thomas