]> granicus.if.org Git - sysstat/commit
sar: Better detect if a disk has been unregistered then registered again
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 19 Apr 2019 14:32:53 +0000 (16:32 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 19 Apr 2019 14:32:53 +0000 (16:32 +0200)
commit9d542dca629e561b6235ff4fd4943881472246ad
treedced1c6c91e0d2921e7f70b8f3731f21c8c3dee6
parentc542c259ba9e71a5ade235dfbcde67ac8b510c4f
sar: Better detect if a disk has been unregistered then registered again

If a disk was mounted read-only then sar might not detect that a disk
had been unregistered then registered again. This is because detection
is based on counters (like number of written sectors) going down. Yet
with a read-only device, the number of written sectors is always 0 and
is never decremented.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sa_common.c