[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Bug 1349722] [NEW] qemu-io: Exit code is always zero
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [Bug 1349722] [NEW] qemu-io: Exit code is always zero |
Date: |
Wed, 30 Jul 2014 16:39:52 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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
pgpgdv1uD1mNS.pgp
Description: PGP signature
- [Qemu-devel] [PATCH v2 0/5] AArch64 TLB performance improvements, Alex Bennée, 2014/07/30
- [Qemu-devel] [PATCH v2 4/5] scripts/make_device_config.sh: inline includes, Alex Bennée, 2014/07/30
- [Qemu-devel] [PATCH v2 2/5] target-arm: A64: fix TLB flush instructions, Alex Bennée, 2014/07/30
- [Qemu-devel] [PATCH v2 3/5] target-arm: A64: fix use 12 bit page tables for AArch64, Alex Bennée, 2014/07/30
- [Qemu-devel] [PATCH v2 5/5] target-arm: A64: disable a bunch of ARMv5 machines, Alex Bennée, 2014/07/30
- [Qemu-devel] [PATCH v2 1/5] target-arm: don't hardcode mask values in arm_cpu_handle_mmu_fault, Alex Bennée, 2014/07/30