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

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