From 4884e0e21774ee82b6c1d9fb992eb56b5ba51846 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 27 May 2009 13:05:53 +0000 Subject: [PATCH] Attempt to load dm-zero module if zero target needed but not present. (mbroz) --- WHATS_NEW | 1 + lib/zero/zero.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index bc89bf850..38af72b85 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.48 - =============================== + Attempt to load dm-zero module if zero target needed but not present. Version 2.02.47 - 22nd May 2009 =============================== diff --git a/lib/zero/zero.c b/lib/zero/zero.c index acf645310..7b3e62e65 100644 --- a/lib/zero/zero.c +++ b/lib/zero/zero.c @@ -58,7 +58,7 @@ static int _zero_target_present(struct cmd_context *cmd, static int _zero_present = 0; if (!_zero_checked) - _zero_present = target_present(cmd, "zero", 0); + _zero_present = target_present(cmd, "zero", 1); _zero_checked = 1;