scottchiefbaker / dool

Python3 compatible fork of dstat
GNU General Public License v3.0
315 stars 58 forks source link

disk-util: filter loop devices #58

Closed Zahrun closed 9 months ago

Zahrun commented 9 months ago
SUMMARY

It would be nice if we could filter the loop devices in disk-util

ISSUE TYPE
DOOL VERSION

1.3.0

OS / ENVIRONMENT

Tuxedo OS 2

STEPS TO REPRODUCE

dool --disk-util

EXPECTED RESULTS

Monitor the utilization of non-loop disks only

ACTUAL RESULTS

dool shows all the loop devices

image

scottchiefbaker commented 9 months ago

Can you post the text from /proc/diskstats so I can see what we're reading.

scottchiefbaker commented 9 months ago

You can already filter --disk-util by using the -D filter like this:

dool --disk-util -D sda,sdd

If this is not sufficient let us know.

Zahrun commented 9 months ago

Oh that totally works, thank you