]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Monitor: don't get confused if utime is never set.
authorNeilBrown <neilb@suse.de>
Tue, 2 Jun 2009 04:24:58 +0000 (14:24 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 2 Jun 2009 04:24:58 +0000 (14:24 +1000)
commit4736b5dc7740ff38064c33b2460c1ee5c9aafa82
treeaf98ac0e4527f19118f82a05c5c24cfc501b0b25
parente0fe762a63889495695b773ad63d329a526fa4ed
Monitor: don't get confused if utime is never set.

externally managed arrays do not (currently) cause utime in
GET_ARRAY_INFO to be updated.  So if it is zero, just assume the
current time.
This will cause GET_DISK_INFO to be called more often, but as we do
the scan only every 60 seconds normally, a few extra syscalls isn't
going to make a big difference.

Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c