From 0cb0c4d911dc50ee5a508b30bd721fb22058282d Mon Sep 17 00:00:00 2001 From: Jerome Froelich Date: Fri, 30 Nov 2018 08:01:39 -0500 Subject: [PATCH] Remove unused variable readOnly from filesystem_linux.go. (#1173) The pull request #1002 changed the logic used on Linux servers to determine if a filesystem is read-only. As a result of this change, the variable `readOnly` is now unused and can be removed. Signed-off-by: Jerome Froelich --- collector/filesystem_linux.go | 1 - 1 file changed, 1 deletion(-) diff --git a/collector/filesystem_linux.go b/collector/filesystem_linux.go index 9cada1e9..e7a692ec 100644 --- a/collector/filesystem_linux.go +++ b/collector/filesystem_linux.go @@ -31,7 +31,6 @@ import ( const ( defIgnoredMountPoints = "^/(dev|proc|sys|var/lib/docker/.+)($|/)" defIgnoredFSTypes = "^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$" - readOnly = 0x1 // ST_RDONLY mountTimeout = 30 * time.Second )