Deepak C Shetty has posted comments on this change.
Change subject: Don't monitor the usage of '/var/run/vdsm' in diskStats ......................................................................
Patch Set 2: (1 inline comment)
.................................................... File lib/vdsm/utils.py Line 230: A sample of host-related statistics. Line 231: Line 232: Contains the sate of the host in the time of initialization. Line 233: """ Line 234: MONITORED_PATHS = ['/tmp', '/var/log', '/var/log/core'] [dpkshetty@deepakcs-lx v7k]$ stat --file-system --format=%T /run tmpfs [dpkshetty@deepakcs-lx v7k]$ stat --file-system --format=%T /var/run tmpfs
The above can help to find the fstype. But python's os.stat doesn't provide an equivalent of the above. Line 235: Line 236: def _getDiskStats(self): Line 237: d = {} Line 238: for p in self.MONITORED_PATHS: