删除文件 0000-sg3_utils-1.37-dont-open-dev-snapshot.patch
This commit is contained in:
parent
f592292ca0
commit
750a17b505
@ -1,27 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user