File pvcreate-enhance-the-error-message.patch of Package lvm2.3105

From b8b35c35a17b95e83817f262d70cb7a7d45cb192 Mon Sep 17 00:00:00 2001
From: Liuhua Wang <lwang@suse.com>
Date: Mon, 29 Feb 2016 20:08:00 +0800
Subject: [PATCH] pvcreate enhance the error message

Signed-off-by: Liuhua Wang(lwang@suse.com)
References: bsc#960744
---
 lib/metadata/metadata.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index 19741ba..9f098ca 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -1483,7 +1483,8 @@ static int _pvcreate_check(struct cmd_context *cmd, const char *name,
 		filter_refresh_needed = scan_needed = 1;
 
 	if (!dev) {
-		log_error("Device %s not found (or ignored by filtering).", name);
+        log_error("Device %s not found (or ignored by filtering). "
+                "Please run with -vvv option for more details", name);
 		goto out;
 	}
 
-- 
1.8.4.5

openSUSE Build Service is sponsored by