From 51431d2c9992a99f58378056523256757edb0fb3 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 21 Sep 2011 21:44:47 +0200 Subject: [PATCH] hdt: Dumping disk failed when disk are present When physical disks were present, the computed items were not flushed and so not present on the disk file. Thanks to pscheie for reporting this. --- com32/hdt/hdt-dump-disks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com32/hdt/hdt-dump-disks.c b/com32/hdt/hdt-dump-disks.c index ef8cf22..bde04d2 100644 --- a/com32/hdt/hdt-dump-disks.c +++ b/com32/hdt/hdt-dump-disks.c @@ -137,7 +137,7 @@ void dump_disks(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **ite if (found==false) { CREATE_NEW_OBJECT; add_b("disks->is_valid",false); - FLUSH_OBJECT; } + FLUSH_OBJECT; to_cpio("disks"); } -- 2.7.4