How does CDM determine changes to available disks on Linux?

book

Article ID: 197259

calendar_today

Updated On:

Products

NIMSOFT PROBES DX Infrastructure Management

Issue/Introduction

How does the CDM probe test for changes to available disks?

Environment

Release : All versions

Component : UIM - CDM

Probe Version : All versions

Resolution

On Linux, CDM uses 2 built-in kernel calls to get disk information.
On the requested intervals the information is returned by making the below calls to the system.

The list of mounted filesystems is found using the system call getmntent().

https://www.man7.org/linux/man-pages/man3/getmntent.3.html

This essentially reads directly from /etc/fstab and /etc/mtab.

Space usage on the filesystems is found using the system call statvfs() against the filesystems once detected.

https://man7.org/linux/man-pages/man3/statvfs.3.html