diff options
author | Jerome Froelich <jeromefroelich@hotmail.com> | 2018-11-30 08:01:39 -0500 |
---|---|---|
committer | Ben Kochie <superq@gmail.com> | 2018-11-30 14:01:39 +0100 |
commit | 0cb0c4d911dc50ee5a508b30bd721fb22058282d (patch) | |
tree | a3a3feb51f388ded0a76470ffcd478435e67ff71 /collector/filesystem_linux.go | |
parent | becca1275c77ffab31ec7082b3bd9ba9382a6c1a (diff) | |
download | prometheus_node_collector-0cb0c4d911dc50ee5a508b30bd721fb22058282d.tar.bz2 prometheus_node_collector-0cb0c4d911dc50ee5a508b30bd721fb22058282d.tar.xz prometheus_node_collector-0cb0c4d911dc50ee5a508b30bd721fb22058282d.zip |
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 <jeromefroelich@hotmail.com>
Diffstat (limited to 'collector/filesystem_linux.go')
-rw-r--r-- | collector/filesystem_linux.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/collector/filesystem_linux.go b/collector/filesystem_linux.go index 9cada1e..e7a692e 100644 --- a/collector/filesystem_linux.go +++ b/collector/filesystem_linux.go | |||
@@ -31,7 +31,6 @@ import ( | |||
31 | const ( | 31 | const ( |
32 | defIgnoredMountPoints = "^/(dev|proc|sys|var/lib/docker/.+)($|/)" | 32 | defIgnoredMountPoints = "^/(dev|proc|sys|var/lib/docker/.+)($|/)" |
33 | 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)$" | 33 | 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)$" |
34 | readOnly = 0x1 // ST_RDONLY | ||
35 | mountTimeout = 30 * time.Second | 34 | mountTimeout = 30 * time.Second |
36 | ) | 35 | ) |
37 | 36 | ||