Blame SOURCES/sg3_utils-1.37-dont-open-dev-snapshot.patch

9422fd
From a0569d83929d98c0a175bc3992352c2c8d09ffa4 Mon Sep 17 00:00:00 2001
9422fd
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
9422fd
Date: Fri, 18 Oct 2013 12:38:05 +0200
9422fd
Subject: [PATCH] don't open /dev/snapshot in sginfo (#920687)
9422fd
9422fd
see https://bugzilla.redhat.com/show_bug.cgi?id=920687 for details
9422fd
---
9422fd
 src/sginfo.c | 3 +++
9422fd
 1 file changed, 3 insertions(+)
9422fd
9422fd
diff --git a/src/sginfo.c b/src/sginfo.c
9422fd
index b27f117..1f2151d 100644
9422fd
--- a/src/sginfo.c
9422fd
+++ b/src/sginfo.c
9422fd
@@ -3408,6 +3408,9 @@ show_devices(int raw)
9422fd
         if ( isdigit(entry->d_name[strlen(entry->d_name)-1]) ) {
9422fd
             continue;
9422fd
         }
9422fd
+        if ( strncmp("snapshot",entry->d_name,8) == 0 ) {
9422fd
+                continue;
9422fd
+        }
9422fd
 
9422fd
         snprintf(dev_name, sizeof(dev_name),"/dev/%s",entry->d_name);
9422fd
 
9422fd
-- 
9422fd
1.8.1.4
9422fd