After upgrading node_exporter from 1.9.1 to 1.10.2, node_filesystem_readonly no longer correctly reports when the same device is mounted multiple times with different flags.
Example: A bind mount that is mounted with ro is now reported as writable.
/dev/sda1 / ext4 rw,relatime 0 0
/dev/sda1 /nix/store ext4 ro,nosuid,nodev,relatime 0 0
Expected behaviour
(with 1.9.1)
node_filesystem_readonly{device="/dev/sda1",device_error="",fstype="ext4",mountpoint="/"} 0
node_filesystem_readonly{device="/dev/sda1",device_error="",fstype="ext4",mountpoint="/nix/store"} 1
Actual behaviour
(with 1.10.2)
node_filesystem_readonly{device="/dev/sda1",device_error="",fstype="ext4",mountpoint="/"} 0
node_filesystem_readonly{device="/dev/sda1",device_error="",fstype="ext4",mountpoint="/nix/store"} 0