Hi Neil,I think STALE is better, it is unambigous.
I think the names in this patch don't match the description at all.
May I suggest different ones?
On Monday, 31. July 2006 09:32, NeilBrown wrote:
Instead of magic numbers (0,1,2,3) in sb_dirty, we have
some flags instead:
MD_CHANGE_DEVS
Some device state has changed requiring superblock update
on all devices.
MD_SB_STALE or MD_SB_NEED_UPDATE
I don't think the split is beneficial, but I don't care for the name much. Some name like SB_UPDATE_NEEDED or the like might be better.
MD_CHANGE_CLEAN
The array has transitions from 'clean' to 'dirty' or back,
requiring a superblock update on active devices, but possibly
not on spares
Maybe split this into MD_SB_DIRTY and MD_SB_CLEAN ?
I would have said UPDATE_PENDING, but either is more descriptive than the original.
MD_CHANGE_PENDING
A superblock update is underway.
MD_SB_PENDING_UPDATE