* [Qemu-devel] [Bug 1349722] [NEW] qemu-io: Exit code is always zero
@ 2014-07-29 8:07 Maria Kustova
2014-07-30 15:39 ` Stefan Hajnoczi
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Maria Kustova @ 2014-07-29 8:07 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
The qemu-io always returns zero on exit independently on errors occurred
during the command execution.
Example,
$ qemu-io -c 'write 128 234' /tmp/run1/test-1/test.img
offset 128 is not sector aligned
$ echo $?
0
qemu.git HEAD: 41a1a9c42c4e
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1349722
Title:
qemu-io: Exit code is always zero
Status in QEMU:
New
Bug description:
The qemu-io always returns zero on exit independently on errors
occurred during the command execution.
Example,
$ qemu-io -c 'write 128 234' /tmp/run1/test-1/test.img
offset 128 is not sector aligned
$ echo $?
0
qemu.git HEAD: 41a1a9c42c4e
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1349722/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Bug 1349722] [NEW] qemu-io: Exit code is always zero
2014-07-29 8:07 [Qemu-devel] [Bug 1349722] [NEW] qemu-io: Exit code is always zero Maria Kustova
@ 2014-07-30 15:39 ` Stefan Hajnoczi
2020-08-07 10:14 ` [Bug 1349722] " Thomas Huth
2020-08-10 8:31 ` Max Reitz
2 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2014-07-30 15:39 UTC (permalink / raw)
To: Bug 1349722; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 608 bytes --]
On Tue, Jul 29, 2014 at 08:07:44AM -0000, Maria Kustova wrote:
> The qemu-io always returns zero on exit independently on errors occurred
> during the command execution.
>
> Example,
>
> $ qemu-io -c 'write 128 234' /tmp/run1/test-1/test.img
>
> offset 128 is not sector aligned
>
> $ echo $?
> 0
>
>
> qemu.git HEAD: 41a1a9c42c4e
For single commands it makes sense to return the command success as the
exit code.
When qemu-io is used interactively or with multiple -c options we need a
error handling policy.
For this reason it is not totally trivial to implement.
Stefan
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 1349722] Re: qemu-io: Exit code is always zero
2014-07-29 8:07 [Qemu-devel] [Bug 1349722] [NEW] qemu-io: Exit code is always zero Maria Kustova
2014-07-30 15:39 ` Stefan Hajnoczi
@ 2020-08-07 10:14 ` Thomas Huth
2020-08-10 8:31 ` Max Reitz
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Huth @ 2020-08-07 10:14 UTC (permalink / raw)
To: qemu-devel
Looking through old bug tickets... is this still an issue with the
latest version of QEMU? Or could we close this ticket nowadays?
** Changed in: qemu
Status: New => Incomplete
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1349722
Title:
qemu-io: Exit code is always zero
Status in QEMU:
Incomplete
Bug description:
The qemu-io always returns zero on exit independently on errors
occurred during the command execution.
Example,
$ qemu-io -c 'write 128 234' /tmp/run1/test-1/test.img
offset 128 is not sector aligned
$ echo $?
0
qemu.git HEAD: 41a1a9c42c4e
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1349722/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 1349722] Re: qemu-io: Exit code is always zero
2014-07-29 8:07 [Qemu-devel] [Bug 1349722] [NEW] qemu-io: Exit code is always zero Maria Kustova
2014-07-30 15:39 ` Stefan Hajnoczi
2020-08-07 10:14 ` [Bug 1349722] " Thomas Huth
@ 2020-08-10 8:31 ` Max Reitz
2 siblings, 0 replies; 4+ messages in thread
From: Max Reitz @ 2020-08-10 8:31 UTC (permalink / raw)
To: qemu-devel
Should be fixed as of 6b3aa8485ca8e.
** Changed in: qemu
Status: Incomplete => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1349722
Title:
qemu-io: Exit code is always zero
Status in QEMU:
Fix Released
Bug description:
The qemu-io always returns zero on exit independently on errors
occurred during the command execution.
Example,
$ qemu-io -c 'write 128 234' /tmp/run1/test-1/test.img
offset 128 is not sector aligned
$ echo $?
0
qemu.git HEAD: 41a1a9c42c4e
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1349722/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-10 8:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-29 8:07 [Qemu-devel] [Bug 1349722] [NEW] qemu-io: Exit code is always zero Maria Kustova
2014-07-30 15:39 ` Stefan Hajnoczi
2020-08-07 10:14 ` [Bug 1349722] " Thomas Huth
2020-08-10 8:31 ` Max Reitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).