From c23586b6e9ab50271b3f5f5c71ceb96fbe2bdf30 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 22 Aug 2020 12:26:05 +0200 Subject: [PATCH] Do not display zsh share twice --- conf/glances.conf | 2 +- docs/aoa/fs.rst | 4 ++-- glances/plugins/glances_fs.py | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/conf/glances.conf b/conf/glances.conf index a9802d7f..f67db742 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -184,7 +184,7 @@ careful=50 warning=70 critical=90 # Allow additional file system types (comma-separated FS type) -#allow=zfs +#allow=shm [irq] # Documentation: https://glances.readthedocs.io/en/stable/aoa/irq.html diff --git a/docs/aoa/fs.rst b/docs/aoa/fs.rst index 37dae695..23d4eecd 100644 --- a/docs/aoa/fs.rst +++ b/docs/aoa/fs.rst @@ -27,13 +27,13 @@ User disk space usage Status By default, the plugin only displays physical devices (hard disks, USB keys). To allow other file system types, you have to enable them in the -configuration file. For example, if you want to allow the ``zfs`` file +configuration file. For example, if you want to allow the ``shm`` file system: .. code-block:: ini [fs] - allow=zfs + allow=shm Also, you can hide mount points as well (in the following ``/boot``): diff --git a/glances/plugins/glances_fs.py b/glances/plugins/glances_fs.py index 6c1e618a..7d43d988 100644 --- a/glances/plugins/glances_fs.py +++ b/glances/plugins/glances_fs.py @@ -103,8 +103,6 @@ class Plugin(GlancesPlugin): return self.stats # Optionnal hack to allow logicals mounts points (issue #448) - # Ex: Had to put 'allow=zfs' in the [fs] section of the conf file - # to allow zfs monitoring for fstype in self.get_conf_value('allow'): try: fs_stat += [f for f in psutil.disk_partitions(all=True) if f.fstype.find(fstype) >= 0]