From 750a17b5050ba9f4fbd4c56ab7a4a3ec110ef419 Mon Sep 17 00:00:00 2001 From: Markeryang <747675909@qq.com> Date: Fri, 17 Jul 2020 15:54:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=200000-sg3?= =?UTF-8?q?=5Futils-1.37-dont-open-dev-snapshot.patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...g3_utils-1.37-dont-open-dev-snapshot.patch | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 0000-sg3_utils-1.37-dont-open-dev-snapshot.patch diff --git a/0000-sg3_utils-1.37-dont-open-dev-snapshot.patch b/0000-sg3_utils-1.37-dont-open-dev-snapshot.patch deleted file mode 100644 index 2fbfe3a..0000000 --- a/0000-sg3_utils-1.37-dont-open-dev-snapshot.patch +++ /dev/null @@ -1,27 +0,0 @@ -From a0569d83929d98c0a175bc3992352c2c8d09ffa4 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Dan=20Hor=C3=A1k?= -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 -