b87a4b
From cc95940e4c0d5f8916d95e627a494c321b95d139 Mon Sep 17 00:00:00 2001
b87a4b
From: Ondrej Dubaj <odubaj@redhat.com>
b87a4b
Date: Tue, 26 Feb 2019 08:36:14 +0100
b87a4b
Subject: [PATCH] avoiding triggering automounts, bug #1670060
b87a4b
b87a4b
---
b87a4b
 sadc.c | 3 +++
b87a4b
 1 file changed, 3 insertions(+)
b87a4b
b87a4b
diff --git a/sadc.c b/sadc.c
b87a4b
index fb3254d..cfb9809 100644
b87a4b
--- a/sadc.c
b87a4b
+++ b/sadc.c
b87a4b
@@ -283,6 +283,9 @@ void sa_sys_init(void)
b87a4b
 
b87a4b
 	for (i = 0; i < NR_ACT; i++) {
b87a4b
 
b87a4b
+		if ( ! (act[i]->options & AO_COLLECTED ) )
b87a4b
+			continue;
b87a4b
+		
b87a4b
 		if (act[i]->f_count) {
b87a4b
 			/* Number of items is not a constant and should be calculated */
b87a4b
 			act[i]->nr = (*act[i]->f_count)(act[i]);
b87a4b
-- 
b87a4b
2.17.1
b87a4b