From aa089b6599bfc5b0bc82d86fe0beac565f296923 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Fri, 16 Jan 2009 13:09:43 +0000 Subject: [PATCH] burnin: only call self.GrowDisks() if needed In case we pass --disk-grow 0[,0..] then we should not call GrowDisks as it prints confusing log lines. Reviewed-by: imsnah --- tools/burnin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/burnin b/tools/burnin index 230c803dd..84b506bde 100755 --- a/tools/burnin +++ b/tools/burnin @@ -689,7 +689,8 @@ class Burner(object): opts.disk_template in constants.DTS_NET_MIRROR) : self.ReplaceDisks2() - if opts.disk_template != constants.DT_DISKLESS: + if (opts.disk_template != constants.DT_DISKLESS and + utils.any(self.disk_growth, lambda n: n > 0)): self.GrowDisks() if opts.do_failover and opts.disk_template in constants.DTS_NET_MIRROR: -- GitLab