[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/6] blkdebug: Allow usage without config file
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 1/6] blkdebug: Allow usage without config file |
Date: |
Thu, 6 Dec 2012 14:32:55 +0100 |
As soon as new rules can be set during runtime, as introduced by the
next patch, blkdebug makes sense even without a config file.
Signed-off-by: Kevin Wolf <address@hidden>
---
block/blkdebug.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/block/blkdebug.c b/block/blkdebug.c
index d61ece8..c9041ec 100644
--- a/block/blkdebug.c
+++ b/block/blkdebug.c
@@ -240,6 +240,11 @@ static int read_config(BDRVBlkdebugState *s, const char
*filename)
int ret;
struct add_rule_data d;
+ /* Allow usage without config file */
+ if (!*filename) {
+ return 0;
+ }
+
f = fopen(filename, "r");
if (f == NULL) {
return -errno;
--
1.7.6.5
- [Qemu-devel] [PATCH 0/6] blkdebug/qcow2/qemu-iotests: Add some AIO testing, Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 4/6] qemu-io: Add AIO debugging commands, Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 2/6] blkdebug: Factor out remove_rule(), Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 1/6] blkdebug: Allow usage without config file,
Kevin Wolf <=
- [Qemu-devel] [PATCH 6/6] qemu-iotests: Test concurrent cluster allocations, Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 5/6] qcow2: Move BLKDBG_EVENT out of the lock, Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 3/6] blkdebug: Implement suspend/resume of AIO requests, Kevin Wolf, 2012/12/06