Bug#624273: /usr/share/mdadm/checkarray should check creation date

Michael Tokarev mjt at tls.msk.ru
Sun Jan 22 16:52:52 UTC 2012


On 22.01.2012 18:49, Sergey B Kirpichev wrote:
> tag 624273 +patch
> thanks
> 
> A simple patch attached.

I don't think that fixing this is a good idea.  The
reason is simple: think of a case when you created
the array with your clock was set wrong (say, 500
years in the future) -- it will never be checked
in this case...  Yes there are easy ways to work
around this very case - eg, to verify if creation
date is in the future and ignore it, but there, we'll
have another issue: 500 years from now we'll risck
skipping one check...

I think it isn't worth the effort fixing it at all,
principle of least surprize should work best here
(so that we know that arrays are checked at the
fixed date, always).

After all, the whole thing is very minor.

Do you not agree?

/mjt





More information about the pkg-mdadm-devel mailing list