You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
787 B
28 lines
787 B
7 years ago
|
From a0569d83929d98c0a175bc3992352c2c8d09ffa4 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
|
||
|
Date: Fri, 18 Oct 2013 12:38:05 +0200
|
||
|
Subject: [PATCH] don't open /dev/snapshot in sginfo (#920687)
|
||
|
|
||
|
see https://bugzilla.redhat.com/show_bug.cgi?id=920687 for details
|
||
|
---
|
||
|
src/sginfo.c | 3 +++
|
||
|
1 file changed, 3 insertions(+)
|
||
|
|
||
|
diff --git a/src/sginfo.c b/src/sginfo.c
|
||
|
index b27f117..1f2151d 100644
|
||
|
--- a/src/sginfo.c
|
||
|
+++ b/src/sginfo.c
|
||
|
@@ -3408,6 +3408,9 @@ show_devices(int raw)
|
||
|
if ( isdigit(entry->d_name[strlen(entry->d_name)-1]) ) {
|
||
|
continue;
|
||
|
}
|
||
|
+ if ( strncmp("snapshot",entry->d_name,8) == 0 ) {
|
||
|
+ continue;
|
||
|
+ }
|
||
|
|
||
|
snprintf(dev_name, sizeof(dev_name),"/dev/%s",entry->d_name);
|
||
|
|
||
|
--
|
||
|
1.8.1.4
|
||
|
|